.page-products {
  --device-bg: var(--color-white);
  --split-divider-width: 4px;
  --guide-item-border: var(--color-border);
  --hover-texture: repeating-linear-gradient(90deg, var(--color-primary) 0px, #E67E22 8px, var(--color-gold) 16px, #2ECC71 24px, var(--color-primary) 32px);
  background: var(--color-white);
  color: var(--color-text);
}

.page-products .container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-products .breadcrumb {
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.page-products .breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.page-products .breadcrumb a[aria-current="page"] {
  color: var(--color-text);
  font-weight: 600;
}

.page-products h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  color: var(--color-dark);
  letter-spacing: -0.02em;
}

.page-products .page-intro {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-text);
  opacity: 0.85;
  margin-bottom: 2.5rem;
}

/* 分屏布局 */
.page-products .split-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  position: relative;
  align-items: stretch;
}

.page-products .split-left,
.page-products .split-right {
  flex: 1 1 35%;
  min-width: 280px;
}

.page-products .split-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: var(--split-divider-width);
  background: var(--color-gold);
  margin: 0 0.5rem;
  align-self: stretch;
  flex-shrink: 0;
  padding: 1rem 0;
}

.page-products .split-divider .comparison-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  margin: 2rem 0;
}

/* 设备区块 */
.page-products .device-section {
  background: var(--device-bg);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 1.5rem 1.5rem 0.5rem;
  margin-bottom: 2rem;
  transition: background 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* 悬停经幡纹理 */
.page-products .device-section:hover {
  background: #FCFCFC;
}

.page-products .device-section:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hover-texture);
  opacity: 0.08;
  pointer-events: none;
}

.page-products .title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.page-products .title-row .section-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--color-primary);
  margin-right: 0;
}

.page-products .title-row h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 0;
  color: var(--color-dark);
  flex: 1 1 auto;
}

.page-products .title-row .section-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  vertical-align: middle;
}

/* details 样式 */
.page-products .device-details {
  margin-top: 0.5rem;
}

.page-products .device-details[open] summary {
  margin-bottom: 0.75rem;
}

.page-products .device-details summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  border-radius: 12px;
  transition: background 0.2s;
}

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

.page-products .device-details summary:hover {
  background: rgba(192,57,43,0.06);
}

.page-products .device-frame {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
}

.page-products .device-details summary:hover .device-frame {
  transform: scale(1.02);
}

.page-products .details-content {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0 0.5rem 1rem;
  color: var(--color-text);
}

.page-products .details-content p {
  margin: 0.5rem 0;
}

/* 图片定位（手机右上，电脑左上） */
.page-products .phone-frame {
  max-width: 300px;
  max-height: 500px;
}

.page-products .desktop-frame {
  max-width: 500px;
  max-height: 400px;
}

/* 使用指南区块 */
.page-products .guide-section {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 2px solid var(--color-primary);
}

.page-products .guide-section .title-row {
  margin-bottom: 1rem;
}

.page-products .guide-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.75rem;
}

.page-products .guide-list li {
  font-family: var(--font-body);
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--color-primary);
  background: rgba(192,57,43,0.04);
  border-radius: 0 8px 8px 0;
  line-height: 1.5;
}

.page-products .guide-list li strong {
  color: var(--color-dark);
}

.page-products .flowchart-wrapper {
  margin: 2rem 0;
  text-align: center;
}

.page-products .flowchart-img {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.page-products .guide-cta {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-top: 1.5rem;
}

.page-products .guide-cta a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-products .guide-cta a:hover {
  color: var(--color-nav-hover);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .page-products h1 {
    font-size: 1.8rem;
  }

  .page-products .page-intro {
    font-size: 1rem;
  }

  .page-products .split-layout {
    flex-direction: column;
    gap: 1.5rem;
  }

  .page-products .split-divider {
    width: 100%;
    height: 4px;
    margin: 0.5rem 0;
    padding: 0.5rem 0;
    flex-direction: row;
  }

  .page-products .split-divider .comparison-img {
    max-width: 90%;
    margin: 0.5rem auto;
  }

  .page-products .title-row h2 {
    font-size: 1.2rem;
  }

  .page-products .title-row .section-number {
    font-size: 2rem;
  }

  .page-products .device-frame {
    max-width: 100% !important;
    max-height: 400px;
  }

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

  .page-products .guide-list li {
    padding: 0.75rem 1rem;
  }
}
