.page-products {
  --products-angle: 4deg;
  background: var(--paper);
}

.page-products .products-section-head {
  margin-bottom: 36px;
}

.page-products .products-section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.2;
  color: var(--ink);
  font-weight: 900;
  text-transform: none;
}

.page-products .products-section-head--invert h2 {
  color: var(--white);
}

/* 首屏 */
.page-products .products-hero {
  position: relative;
  overflow: hidden;
  padding: 30px 0 64px;
}

.page-products .products-hero::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 82%;
  height: 58%;
  background: linear-gradient(135deg, rgba(242, 92, 5, 0.14), rgba(139, 47, 201, 0.12));
  clip-path: polygon(22% 0, 100% 28%, 100% 100%, 0 100%);
  z-index: 0;
}

.page-products .products-hero::after {
  content: '';
  position: absolute;
  top: 18%;
  right: 6%;
  width: 44px;
  height: 44px;
  background: var(--yellow);
  border-radius: 50%;
  opacity: 0.4;
  z-index: 0;
}

.page-products .products-hero .container {
  position: relative;
  z-index: 1;
}

.page-products .products-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 42px 32px;
  align-items: center;
  margin-top: 36px;
}

.page-products .products-hero__copy {
  max-width: 560px;
}

.page-products .products-hero__lead {
  margin: 16px 0 24px;
  font-size: 1.0625rem;
  color: var(--gray-text);
  max-width: 46ch;
}

.page-products .products-hero__tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-products .products-hero__tags li {
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(15, 26, 44, 0.05);
}

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

.page-products .products-phone-frame {
  position: relative;
  width: 100%;
  max-width: 300px;
  border-radius: 36px;
  border: 7px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-float);
  transform: rotate(0deg);
  transition: transform var(--speed-base);
  overflow: hidden;
}

.page-products .products-phone-frame:hover {
  transform: rotate(0deg) translateY(-6px);
}

.page-products .products-phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 功能亮点 */
.page-products .products-features {
  padding: 72px 0 80px;
}

.page-products .products-features__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-products .products-feature {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px 28px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: box-shadow var(--speed-base);
}

.page-products .products-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--grad);
  transform: scaleY(0.35);
  transform-origin: top;
  transition: transform var(--speed-base);
}

.page-products .products-feature:hover {
  box-shadow: var(--shadow-float);
}

.page-products .products-feature:hover::before {
  transform: scaleY(1);
}

.page-products .products-feature__figure {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--muted);
  line-height: 0;
}

.page-products .products-feature__figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform var(--speed-base);
}

.page-products .products-feature:hover .products-feature__figure img {
  transform: scale(1.03);
}

.page-products .products-feature__body {
  position: relative;
}

.page-products .products-feature__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 30px;
  padding: 0 10px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.page-products .products-feature__body h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.3;
}

.page-products .products-feature__icon {
  width: 22px;
  height: 22px;
  color: var(--orange);
  margin-right: 6px;
  vertical-align: -4px;
  transition: color var(--speed-fast);
}

.page-products .products-feature:hover .products-feature__icon {
  color: var(--purple);
}

.page-products .products-feature__body > p {
  margin: 0;
  color: var(--gray-text);
  font-size: 0.9375rem;
}

.page-products .products-feature__details {
  margin-top: 14px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.page-products .products-feature__details summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.875rem;
  list-style: none;
}

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

.page-products .products-feature__details summary::after {
  content: '↓';
  display: inline-block;
  font-weight: 900;
  transition: transform var(--speed-fast);
}

.page-products .products-feature__details[open] summary::after {
  transform: rotate(180deg);
}

.page-products .products-feature__details p {
  margin: 10px 0 0;
  padding: 12px 14px;
  background: var(--muted);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--ink);
}

/* 版本历史 */
.page-products .products-versions {
  background: var(--ink);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.page-products .products-versions::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 47, 201, 0.35), transparent 70%);
}

.page-products .products-timeline {
  position: relative;
  margin-top: 44px;
}

.page-products .products-timeline::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: rgba(245, 240, 232, 0.25);
}

.page-products .products-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.page-products .products-timeline__item:last-child {
  margin-bottom: 0;
}

.page-products .products-timeline__badge {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  transition: transform var(--speed-base), background var(--speed-base), color var(--speed-base);
}

.page-products .products-timeline__item:hover .products-timeline__badge {
  transform: scale(1.08);
  border-color: var(--orange);
}

.page-products .products-timeline__item--current .products-timeline__badge {
  background: var(--grad);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 0 0 5px rgba(242, 92, 5, 0.2), 0 8px 20px rgba(0, 0, 0, 0.25);
}

.page-products .products-timeline__content {
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--speed-base), border-color var(--speed-base), transform var(--speed-base);
}

.page-products .products-timeline__item:hover .products-timeline__content {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(242, 92, 5, 0.55);
  transform: translateX(6px);
}

.page-products .products-timeline__content h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
}

.page-products .products-timeline__content p {
  margin: 0;
  font-size: 0.9375rem;
  color: rgba(245, 240, 232, 0.82);
}

/* 下载指南 */
.page-products .products-guide {
  padding: 72px 0 80px;
}

.page-products .products-guide__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.page-products .products-guide__panel {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.page-products .products-guide__panel h3 {
  margin: 0 0 18px;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-products .products-guide__panel h3::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grad);
  flex-shrink: 0;
}

.page-products .products-guide__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: productsSteps;
}

.page-products .products-guide__steps li {
  counter-increment: productsSteps;
  position: relative;
  padding: 10px 0 10px 38px;
  color: var(--gray-text);
  font-size: 0.9375rem;
  border-bottom: 1px dashed var(--line);
}

.page-products .products-guide__steps li:last-child {
  border-bottom: 0;
}

.page-products .products-guide__steps li::before {
  content: counter(productsSteps, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--muted);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-products .products-guide__panel--channel {
  background: var(--yellow);
  border-color: transparent;
}

.page-products .products-guide__panel--channel p {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 0.9375rem;
}

.page-products .products-guide__panel--channel p:last-child {
  margin-bottom: 0;
}

.page-products .products-guide__panel--sync {
  background: transparent;
  border: 2px dashed var(--ink);
  box-shadow: none;
}

.page-products .products-guide__panel--sync p {
  margin: 0;
  color: var(--ink);
  font-size: 0.9375rem;
}

/* 用户反馈 */
.page-products .products-feedback {
  padding: 0 0 88px;
}

.page-products .products-feedback__inner {
  position: relative;
  text-align: center;
  padding: 56px 28px;
  border-radius: 32px;
  background: var(--grad);
  color: var(--white);
  overflow: hidden;
}

.page-products .products-feedback__inner::before {
  content: '';
  position: absolute;
  top: -48px;
  right: -48px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 212, 0, 0.2);
}

.page-products .products-feedback__inner::after {
  content: '';
  position: absolute;
  bottom: -76px;
  left: -40px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.page-products .products-feedback__inner > * {
  position: relative;
  z-index: 1;
}

.page-products .products-feedback .products-section-head {
  margin-bottom: 18px;
}

.page-products .products-feedback p {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.88);
}

.page-products .products-feedback__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.page-products .products-feedback__actions .btn {
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--speed-fast), color var(--speed-fast), border-color var(--speed-fast);
}

.page-products .products-feedback__actions .btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}

.page-products .products-feedback__actions .btn-outline:hover {
  background: var(--white);
  color: var(--ink);
}

.page-products .products-feedback__actions .btn-primary {
  background: var(--white);
  color: var(--ink);
  border: 2px solid transparent;
}

.page-products .products-feedback__actions .btn-primary:hover {
  background: var(--yellow);
  border-color: var(--yellow);
}

.page-products .products-feedback__note {
  margin: 24px 0 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.page-products .products-feedback__note a {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 桌面增强 */
@media (min-width: 640px) {
  .page-products .products-guide__grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-products .products-guide__panel--sync {
    grid-column: span 2;
  }
}

@media (min-width: 820px) {
  .page-products .products-hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    margin-top: 48px;
  }

  .page-products .products-hero::before {
    width: 58%;
    height: 72%;
  }

  .page-products .products-phone-frame {
    max-width: 340px;
    border-width: 8px;
    transform: rotate(var(--products-angle));
  }

  .page-products .products-features__list {
    gap: 28px;
  }

  .page-products .products-feature {
    grid-template-columns: 0.92fr 1.08fr;
    align-items: center;
    padding: 28px 32px;
  }

  .page-products .products-feature:nth-child(odd) {
    border-radius: 8px 28px 28px 28px;
  }

  .page-products .products-feature:nth-child(even) {
    grid-template-columns: 1.08fr 0.92fr;
    border-radius: 28px 8px 28px 28px;
  }

  .page-products .products-feature:nth-child(even) .products-feature__figure {
    order: 2;
  }

  .page-products .products-feature:nth-child(even) .products-feature__body {
    order: 1;
  }

  .page-products .products-timeline {
    margin-top: 52px;
  }

  .page-products .products-timeline__item {
    grid-template-columns: 72px 1fr;
    gap: 28px;
  }

  .page-products .products-timeline::before {
    left: 35px;
  }

  .page-products .products-timeline__badge {
    width: 72px;
    height: 72px;
    font-size: 1rem;
  }

  .page-products .products-feedback__inner {
    padding: 72px 48px;
  }
}

@media (min-width: 1000px) {
  .page-products .products-guide__grid {
    grid-template-columns: 1.05fr 0.95fr 1fr;
  }

  .page-products .products-guide__panel--sync {
    grid-column: span 1;
  }

  .page-products .products-feedback__inner {
    padding: 80px 64px;
  }
}
