.page-products {
  --ct-flow: 640px;
  --ct-cut: 6deg;
}

/* ---------- 面包屑 ---------- */
.page-products .ct-crumb-wrap {
  padding-top: 20px;
  padding-bottom: 20px;
}

/* ---------- 首屏 ---------- */
.page-products .ct-hero {
  position: relative;
  overflow: hidden;
  padding-block: 48px 56px;
  background:
    linear-gradient(155deg, rgba(31, 122, 140, 0.34) 0%, rgba(10, 26, 47, 0) 58%),
    var(--c-night);
}

.page-products .ct-hero-slice {
  position: absolute;
  top: -18%;
  right: -32%;
  width: min(640px, 88vw);
  height: 340px;
  background: linear-gradient(112deg, rgba(224, 163, 62, 0.24), rgba(200, 56, 43, 0.14) 62%, rgba(31, 122, 140, 0));
  transform: skewY(calc(-1 * var(--ct-cut)));
  pointer-events: none;
}

.page-products .ct-hero-inner {
  position: relative;
  display: grid;
  gap: 34px;
}

.page-products .ct-hero-copy {
  max-width: 46em;
}

.page-products .ct-hero-title {
  margin: 14px 0 18px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(30px, 6.4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--c-paper);
  transform: skewX(-2deg);
  transform-origin: left bottom;
}

.page-products .ct-hero-lede {
  max-width: var(--ct-flow);
  color: var(--page-fg-soft);
  font-size: 16px;
  line-height: 1.8;
}

.page-products .ct-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-products .ct-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.page-products .ct-stat {
  padding-left: 12px;
  border-left: 1px solid var(--page-line-strong);
}

.page-products .ct-stat .stat-value {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(20px, 4.4vw, 28px);
  letter-spacing: 0.02em;
  color: var(--c-amber);
  line-height: 1.2;
}

.page-products .ct-stat .stat-label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--page-fg-soft);
}

/* ---------- 通用正文 ---------- */
.page-products .ct-lead {
  max-width: var(--ct-flow);
  margin-top: 14px;
  color: var(--page-fg-soft);
}

.page-products .ct-body {
  max-width: var(--ct-flow);
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.8;
}

/* ---------- 分类分段切换 ---------- */
.page-products .ct-cats .section-title {
  margin-top: 10px;
  color: inherit;
}

.page-products .ct-tabs {
  margin-top: 30px;
}

.page-products .ct-tablist {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--page-line);
  scrollbar-width: thin;
}

.page-products .ct-tab {
  flex: 0 0 auto;
  padding: 9px 18px;
  background: transparent;
  border: 1px solid var(--page-line-strong);
  color: inherit;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
  transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.page-products .ct-tab[aria-selected="true"] {
  background: var(--c-amber);
  border-color: var(--c-amber);
  color: var(--c-ink);
}

.page-products .ct-tab:focus-visible {
  outline: 2px solid var(--c-azurite-soft);
  outline-offset: 2px;
}

.page-products .ct-panel {
  padding-top: 22px;
}

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

.page-products .ct-league-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .ct-league {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--card-bg);
  color: var(--card-fg);
  border: 1px solid var(--card-line);
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}

.page-products .ct-league-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
}

.page-products .ct-league-count {
  font-size: 12px;
  color: var(--c-danxia);
}

.page-products .ct-cat-figure {
  margin-top: 28px;
}

/* ---------- 长按收藏 ---------- */
.page-products .ct-hold-inner {
  display: grid;
  gap: 36px;
}

.page-products .ct-hold-notes {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  max-width: var(--ct-flow);
}

.page-products .ct-hold-notes li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--page-fg-soft);
}

.page-products .ct-hold-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 2px;
  background: var(--c-amber);
}

.page-products .ct-hold-demo {
  min-width: 0;
}

.page-products .ct-stack {
  display: grid;
  gap: 14px;
}

.page-products .ct-card {
  position: relative;
  padding: 16px 18px 14px;
  background: var(--card-bg);
  color: var(--card-fg);
  border: 1px solid var(--card-line);
  cursor: pointer;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  transition: box-shadow 0.22s var(--ease), background 0.22s var(--ease);
}

.page-products .ct-card--b {
  margin-left: 12px;
}

.page-products .ct-card--c {
  margin-left: 24px;
}

.page-products .ct-card:focus-visible {
  outline: 2px solid var(--c-azurite);
  outline-offset: 2px;
}

.page-products .ct-card.is-holding {
  background: #fff8ec;
  box-shadow: 0 0 0 6px rgba(200, 56, 43, 0.16);
}

.page-products .ct-card.is-held .ct-bookmark {
  opacity: 1;
  transform: translateY(0);
}

.page-products .ct-bookmark {
  position: absolute;
  top: 0;
  right: 20px;
  width: 15px;
  height: 24px;
  background: var(--c-cinnabar);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.page-products .ct-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-products .ct-tag {
  font-size: 11px;
}

.page-products .ct-card-time {
  margin-left: auto;
  font-size: 12px;
  color: var(--c-danxia);
  letter-spacing: 0.02em;
}

.page-products .ct-card-title {
  margin: 12px 0 6px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.page-products .ct-card-meta {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--card-fg-soft);
}

.page-products .ct-hold-result {
  margin: 14px 0 0 24px;
  font-size: 13px;
  color: var(--page-fg-soft);
}

.page-products .ct-hold-result .mono {
  color: var(--c-amber);
  font-size: 16px;
}

.page-products .ct-hold-figure {
  margin-top: 24px;
}

/* ---------- 收藏夹三种排序 ---------- */
.page-products .ct-sort {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.page-products .ct-sort-col {
  padding: 20px 18px;
  background: var(--card-bg);
  color: var(--card-fg);
  border: 1px solid var(--card-line);
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 22px) 100%, 0 100%);
}

.page-products .ct-sort-head {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.page-products .ct-sort-head::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 8px;
  background: var(--c-amber);
}

.page-products .ct-sort-desc {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.72;
  color: var(--card-fg-soft);
}

.page-products .ct-sort-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--card-line);
}

.page-products .ct-sort-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--card-line);
  font-size: 13px;
}

.page-products .ct-sort-item .mono {
  font-size: 12px;
  color: var(--c-danxia);
  letter-spacing: 0.02em;
}

.page-products .ct-fav-foot {
  margin-top: 28px;
}

.page-products .ct-fav-foot .ct-body {
  color: inherit;
}

.page-products .ct-fav-figure {
  margin-top: 22px;
}

/* ---------- 断点续看 ---------- */
.page-products .ct-resume-inner {
  display: grid;
  gap: 34px;
}

.page-products .ct-resume-copy .ct-body {
  color: var(--page-fg-soft);
}

.page-products .ct-resume-notes {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  max-width: var(--ct-flow);
}

.page-products .ct-resume-notes li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--page-fg-soft);
}

.page-products .ct-resume-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 2px;
  background: var(--c-cinnabar);
}

.page-products .ct-resume-visual {
  min-width: 0;
}

.page-products .ct-timeline {
  padding: 22px 18px 16px;
  background: var(--c-deep);
  border: 1px solid var(--page-line);
  box-shadow: var(--shadow-2);
}

.page-products .ct-tl-track {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: rgba(79, 163, 181, 0.24);
}

.page-products .ct-tl-done {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  border-radius: 3px 0 0 3px;
  background: var(--c-azurite-soft);
}

.page-products .ct-tl-buffer {
  position: absolute;
  top: -2px;
  height: 10px;
  background: rgba(224, 163, 62, 0.3);
}

.page-products .ct-tl-buffer--pre {
  left: calc(50% - 9%);
  width: 9%;
}

.page-products .ct-tl-buffer--post {
  left: 50%;
  width: 9%;
}

.page-products .ct-tl-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--c-amber);
  box-shadow: 0 0 0 5px rgba(224, 163, 62, 0.2);
}

.page-products .ct-tl-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--page-fg-soft);
}

.page-products .ct-tl-caption {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--page-fg-soft);
}

.page-products .ct-tl-caption .mono {
  color: var(--c-amber);
}

.page-products .ct-tl-figure {
  margin-top: 20px;
}

/* ---------- 收藏之后能拿到什么 ---------- */
.page-products .ct-gain-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.page-products .ct-gain {
  position: relative;
  padding: 22px 20px 20px;
  background: var(--card-bg);
  color: var(--card-fg);
  border: 1px solid var(--card-line);
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 20px) 100%, 0 100%);
}

.page-products .ct-gain-no {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--c-danxia);
}

.page-products .ct-gain-title {
  margin: 10px 0 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.page-products .ct-gain-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.78;
  color: var(--card-fg-soft);
}

/* ---------- 适配与稳定 ---------- */
.page-products .ct-fit-inner {
  display: grid;
  gap: 30px;
}

.page-products .ct-fit-rows {
  margin: 24px 0 0;
  max-width: var(--ct-flow);
  border-top: 1px solid var(--page-line);
}

.page-products .ct-fit-row {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--page-line);
}

.page-products .ct-fit-row dt {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--c-danxia);
}

.page-products .ct-fit-row dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
}

.page-products .ct-fit-figure {
  margin: 0;
}

/* ---------- 换设备 ---------- */
.page-products .ct-switch-inner {
  display: grid;
  gap: 28px;
}

.page-products .ct-switch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-products .ct-switch-side {
  padding: 22px 20px;
  background: var(--chrome-bg);
  border: 1px solid var(--page-line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 20px) 100%, 0 100%);
}

.page-products .ct-switch-side-title {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.page-products .ct-switch-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .ct-switch-links li + li {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--page-line);
}

.page-products .ct-link {
  display: inline-block;
  font-size: 14px;
  line-height: 1.72;
  color: var(--c-azurite-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.page-products .ct-link:hover,
.page-products .ct-link:focus-visible {
  color: var(--c-amber);
  border-bottom-color: var(--c-amber);
}

.page-products .ct-link:focus-visible {
  outline: 2px solid var(--c-azurite-soft);
  outline-offset: 3px;
}

/* ---------- 每屏右下角书签暗示 ---------- */
.page-products .ct-screen {
  position: relative;
}

.page-products .ct-screen::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 20px;
  width: 16px;
  height: 26px;
  border: 1px solid rgba(200, 56, 43, 0.4);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
  pointer-events: none;
}

/* ---------- 响应式 ---------- */
@media (min-width: 760px) {
  .page-products .ct-sort {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .page-products .ct-fit-row {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    align-items: baseline;
  }
}

@media (min-width: 900px) {
  .page-products .ct-hero {
    padding-block: 68px 76px;
  }

  .page-products .ct-hero-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
    gap: 48px;
    align-items: end;
  }

  .page-products .ct-hero-stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .page-products .ct-hero-lede {
    font-size: 17px;
  }

  .page-products .ct-hold-inner {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: 56px;
    align-items: start;
  }

  .page-products .ct-stack {
    gap: 16px;
  }

  .page-products .ct-card--b {
    margin-left: 20px;
  }

  .page-products .ct-card--c {
    margin-left: 40px;
  }

  .page-products .ct-resume-inner {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 52px;
    align-items: start;
  }

  .page-products .ct-fit-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  .page-products .ct-switch-inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    gap: 48px;
    align-items: start;
  }
}

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

  .page-products .ct-gain {
    padding: 26px 22px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .ct-tab,
  .page-products .ct-card,
  .page-products .ct-bookmark,
  .page-products .ct-link {
    transition: none;
  }
}
