.page-products {
  position: relative;
  display: block;
  color: var(--paper);
  overflow-x: clip;
}

/* ============ 首屏 ============ */
.page-products .tool-hero {
  position: relative;
  padding: clamp(34px, 6vw, 92px) 0 clamp(20px, 3.5vw, 42px);
}

.page-products .tool-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, rgba(53, 224, 224, 0.13) 0%, rgba(53, 224, 224, 0) 44%),
    linear-gradient(295deg, rgba(255, 122, 47, 0.16) 0%, rgba(255, 122, 47, 0) 48%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 64px), 0 100%);
  pointer-events: none;
}

.page-products .tool-hero > .shell {
  position: relative;
  z-index: 1;
}

.page-products .tool-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 4vw, 44px);
  margin-top: clamp(16px, 2.6vw, 28px);
}

.page-products .tool-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(29px, 7vw, 56px);
  line-height: 1.09;
  letter-spacing: -0.02em;
  margin: 12px 0 0;
  color: var(--paper);
}

.page-products .tool-hero__title em {
  font-style: normal;
  color: var(--cyan);
}

.page-products .tool-hero__lead {
  margin: clamp(14px, 2vw, 20px) 0 0;
  font-size: clamp(15px, 1.6vw, 17.5px);
  line-height: 1.78;
  color: rgba(244, 241, 232, 0.8);
  max-width: 58ch;
}

.page-products .tool-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(18px, 2.6vw, 28px);
}

.page-products .tool-hero__panel {
  align-self: stretch;
}

.page-products .hero-stats {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.page-products .hero-stats__item {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
}

.page-products .hero-stats__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(23px, 3.2vw, 32px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--cyan);
}

.page-products .hero-stats__small {
  font-size: 0.5em;
  margin-left: 3px;
  color: rgba(53, 224, 224, 0.75);
}

.page-products .hero-stats__label {
  font-size: 13px;
  line-height: 1.55;
  color: var(--slate);
}

/* ============ 工具快速定位 ============ */
.page-products .tool-jump {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(22px, 3.4vw, 36px);
  padding: 4px 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.page-products .tool-jump::-webkit-scrollbar {
  display: none;
}

.page-products .tool-jump__label {
  flex: 0 0 auto;
  padding-right: 12px;
  border-right: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--slate);
}

.page-products .tool-jump__item {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(14, 27, 46, 0.72);
  color: rgba(244, 241, 232, 0.86);
  font-size: 13.5px;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.page-products .tool-jump__item:hover,
.page-products .tool-jump__item:focus-visible {
  border-color: var(--orange);
  background: rgba(255, 122, 47, 0.12);
  color: var(--paper);
}

/* ============ 工具区块骨架 ============ */
.page-products .tool-stack {
  display: block;
}

.page-products .tool-block {
  position: relative;
  isolation: isolate;
  padding: clamp(32px, 5.4vw, 68px) 0;
  scroll-margin-top: 92px;
}

.page-products .tool-block::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan) 0%, rgba(53, 224, 224, 0.1) 48%, rgba(255, 122, 47, 0.78) 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 150px) 100%, 0 100%);
}

.page-products .tool-block--alt::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(165deg, rgba(14, 27, 46, 0.96) 0%, rgba(14, 27, 46, 0.5) 56%, rgba(7, 16, 31, 0) 100%);
  clip-path: polygon(0 22px, 100% 0, 100% calc(100% - 22px), 0 100%);
  pointer-events: none;
}

.page-products .tool-block__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: clamp(18px, 3.2vw, 34px);
}

.page-products .tool-block__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(20px, 2.8vw, 32px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--cyan);
  padding-top: 4px;
}

.page-products .tool-block__headtext {
  min-width: 0;
}

.page-products .tool-block__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(21px, 3.5vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--paper);
}

.page-products .tool-block__lead {
  margin: 12px 0 0;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.76;
  color: rgba(244, 241, 232, 0.78);
  max-width: 64ch;
}

.page-products .tool-block__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3.2vw, 40px);
  align-items: start;
}

.page-products .tool-block__copy {
  min-width: 0;
}

.page-products .tool-block__copy p {
  margin: 0 0 1.1em;
  font-size: 15.5px;
  line-height: 1.8;
  color: rgba(244, 241, 232, 0.8);
}

.page-products .tool-block__copy p:last-of-type {
  margin-bottom: 0;
}

.page-products .tool-block__copy--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2.6vw, 34px);
  margin-top: clamp(18px, 2.8vw, 30px);
}

.page-products .tool-notes {
  list-style: none;
  margin: 1.3em 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-products .tool-notes li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.66;
  color: rgba(244, 241, 232, 0.74);
}

.page-products .tool-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.page-products .tool-block__media {
  min-width: 0;
}

.page-products .tool-block__media--center {
  margin-top: clamp(18px, 3vw, 32px);
  display: flex;
  justify-content: center;
}

.page-products .media-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--panel);
  max-width: 100%;
}

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

.page-products .media-frame--square {
  width: min(100%, 420px);
}

/* ============ 窄条带要点 ============ */
.page-products .tool-block__strip {
  list-style: none;
  margin: clamp(20px, 3vw, 32px) 0 0;
  padding: clamp(16px, 2.3vw, 22px) clamp(16px, 2.3vw, 24px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: rgba(7, 16, 31, 0.74);
}

.page-products .strip-item {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
}

.page-products .strip-item strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-products .strip-item span {
  font-size: 13.5px;
  line-height: 1.64;
  color: rgba(244, 241, 232, 0.68);
}

/* ============ 多场对照层叠卡片 ============ */
.page-products .compare-stack {
  list-style: none;
  position: relative;
  margin: -34px 0 0;
  padding: 0 10px 6px;
  display: grid;
  z-index: 2;
}

.page-products .compare-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: rgba(14, 27, 46, 0.97);
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.page-products .compare-card + .compare-card {
  margin-top: -10px;
}

.page-products .compare-card:nth-child(2) {
  margin-left: 12px;
}

.page-products .compare-card:nth-child(3) {
  margin-left: 24px;
}

.page-products .compare-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.page-products .compare-card__id {
  flex: 0 0 auto;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--slate);
}

.page-products .compare-card__min {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  color: rgba(244, 241, 232, 0.62);
}

.page-products .compare-card__score {
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--paper);
  white-space: nowrap;
}

.page-products .compare-card__flags {
  flex: 0 0 auto;
  display: inline-flex;
  gap: 5px;
}

.page-products .flag {
  display: inline-block;
  padding: 3px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.page-products .flag--yellow {
  color: var(--yellow);
  background: rgba(255, 197, 61, 0.14);
  border-color: rgba(255, 197, 61, 0.4);
}

.page-products .flag--red {
  color: var(--red);
  background: rgba(255, 77, 94, 0.14);
  border-color: rgba(255, 77, 94, 0.4);
}

/* ============ 伤停确认面板 ============ */
.page-products .fitness-panel {
  margin-top: 1.4em;
  padding: clamp(16px, 2.4vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: linear-gradient(155deg, rgba(255, 197, 61, 0.11) 0%, rgba(14, 27, 46, 0.92) 46%, rgba(7, 16, 31, 0.96) 100%);
}

.page-products .fitness-panel__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 10px;
}

.page-products .fitness-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-products .fitness-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 0;
  border-top: 1px dashed var(--line);
}

.page-products .fitness-item:first-child {
  border-top: 0;
}

.page-products .fitness-item__dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
}

.page-products .fitness-item__dot--yellow {
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 197, 61, 0.18);
}

.page-products .fitness-item__dot--red {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 77, 94, 0.18);
}

.page-products .fitness-item__dot--moss {
  background: var(--moss);
  box-shadow: 0 0 0 3px rgba(134, 185, 143, 0.18);
}

.page-products .fitness-item__text {
  font-size: 14px;
  line-height: 1.66;
  color: rgba(244, 241, 232, 0.76);
  min-width: 0;
}

.page-products .fitness-item__text strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14.5px;
  color: var(--paper);
}

/* ============ 版本对比 ============ */
.page-products .version-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: clamp(18px, 2.8vw, 28px);
}

.page-products .version-col {
  padding: clamp(16px, 2.2vw, 20px);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: rgba(7, 16, 31, 0.66);
}

.page-products .version-col--old {
  border-left: 3px solid var(--clay);
}

.page-products .version-col--new {
  border-left: 3px solid var(--moss);
}

.page-products .version-col__title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-products .version-rows {
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-products .version-rows__row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
  line-height: 1.58;
}

.page-products .version-rows__row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-products .version-rows dt {
  color: var(--slate);
}

.page-products .version-rows dd {
  margin: 0;
  min-width: 0;
  color: rgba(244, 241, 232, 0.84);
}

/* ============ 导出与分享 ============ */
.page-products .export-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.page-products .export-card {
  position: relative;
  padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: linear-gradient(160deg, rgba(53, 224, 224, 0.08) 0%, rgba(14, 27, 46, 0.9) 52%);
  overflow: hidden;
}

.page-products .export-card:nth-child(2) {
  background: linear-gradient(160deg, rgba(255, 122, 47, 0.12) 0%, rgba(14, 27, 46, 0.9) 52%);
}

.page-products .export-card__title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(17px, 2.2vw, 21px);
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-products .export-card p {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: rgba(244, 241, 232, 0.76);
}

/* ============ 结尾延伸 ============ */
.page-products .tool-next {
  padding: clamp(34px, 5.6vw, 72px) 0 clamp(12px, 2vw, 24px);
}

.page-products .tool-next__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(18px, 2.6vw, 28px);
}

.page-products .tool-next__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(19px, 2.8vw, 27px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--paper);
}

.page-products .next-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.page-products .next-links a {
  display: block;
  height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: rgba(14, 27, 46, 0.72);
  color: var(--paper);
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease, background-color 0.16s ease;
}

.page-products .next-links a:hover,
.page-products .next-links a:focus-visible {
  border-color: var(--orange);
  background: rgba(255, 122, 47, 0.1);
  transform: translateY(-3px);
}

.page-products .next-links strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.page-products .next-links span {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.62;
  color: rgba(244, 241, 232, 0.68);
}

.page-products .tool-next__back {
  margin: clamp(18px, 2.4vw, 26px) 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate);
}

.page-products .tool-next__back a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.page-products .tool-next__back a:hover {
  color: var(--paper);
  border-bottom-color: var(--orange);
}

/* ============ 响应式 ============ */
@media (min-width: 680px) {
  .page-products .version-compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .page-products .export-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .page-products .next-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 820px) {
  .page-products .tool-block__copy--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .page-products .tool-block__copy--split .tool-notes {
    margin-top: 0;
  }
}

@media (min-width: 860px) {
  .page-products .tool-block__strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .page-products .strip-item {
    padding-right: 22px;
  }

  .page-products .strip-item + .strip-item {
    padding-left: 22px;
    border-left: 1px solid var(--line);
  }
}

@media (min-width: 960px) {
  .page-products .tool-hero__grid {
    grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.82fr);
    align-items: end;
  }

  .page-products .tool-block__body {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: clamp(26px, 3.6vw, 48px);
  }

  .page-products .tool-block--flip .tool-block__media {
    order: -1;
  }

  .page-products .compare-stack {
    padding: 0 20px 6px;
  }
}

@media (min-width: 1120px) {
  .page-products .next-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-products .hero-stats {
    gap: 20px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .tool-jump__item,
  .page-products .compare-card,
  .page-products .next-links a {
    transition: none;
  }

  .page-products .compare-card:hover,
  .page-products .next-links a:hover {
    transform: none;
  }
}
