/* hide category tabs for now */
.ps-tabs { display: none !important; }
/* Product series page — AVCiT brand, aligned with product-hub */
.ps-page {
  --ps-red: #c30d23;
  --ps-ink: #1a1a1a;
  --ps-muted: #5c6470;
  --ps-line: #e6e8ee;
  --ps-bg: #f3f5f9;
  background:
    radial-gradient(ellipse 50% 30% at 50% 0%, rgba(195, 13, 35, 0.04), transparent 60%),
    linear-gradient(180deg, #f3f5f9 0%, #e9edf4 55%, #f3f5f9 100%);
  color: #282323;
  min-height: 60vh;
}
/* 无 banner：面包屑 + 列表区撑满首屏剩余高度，避免内容少时页脚上顶 */
.ps-page.is-no-hero {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--av-nav-h, 64px));
  min-height: calc(100dvh - var(--av-nav-h, 64px));
  background: #fff;
}
.ps-page.is-no-hero .ps-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.ps-page.is-no-hero .ps-main-inner {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.ps-page.is-no-hero .ps-panel {
  flex: 1 1 auto;
}

.ps-hero {
  position: relative;
  height: 400px;
  min-height: 400px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 80% at 78% 100%, rgba(195, 13, 35, 0.32), transparent 55%),
    radial-gradient(ellipse 40% 60% at 12% 80%, rgba(120, 20, 30, 0.4), transparent 50%),
    linear-gradient(180deg, #0b0c10 0%, #12141c 42%, #1a0c12 100%);
}
.ps-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 48px;
  background: linear-gradient(180deg, transparent, rgba(243, 245, 249, 0.35));
  pointer-events: none;
}
.ps-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--site-maxw);
  width: 100%;
  margin: 0 auto;
  padding: 0 0;
  box-sizing: border-box;
}
.ps-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.2vw, 32px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.22;
  color: #fff;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.ps-hero-series {
  display: inline-block;
  flex-shrink: 0;
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  background: linear-gradient(120deg, #ffb4bb 0%, #ff5a6a 42%, #c30d23 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.ps-hero-sub {
  margin: 0;
  max-width: 680px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.86);
}

.ps-toolbar {
  position: sticky;
  top: 64px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #ececec;
  height: 60px;
  min-height: 60px;
  box-sizing: border-box;
}
.ps-toolbar-inner {
  max-width: var(--site-maxw);
  width: 100%;
  margin: 0 auto;
  padding: 0 0;
  height: 60px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 16px;
  box-sizing: border-box;
}

.ps-crumb {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  color: #6b7280;
  line-height: 1;
  letter-spacing: 0.01em;
}
.ps-crumb a,
.ps-crumb .cur,
.ps-crumb .sep {
  display: inline-flex;
  align-items: center;
  line-height: 1.35;
  height: auto;
  white-space: nowrap;
}
.ps-crumb .cur {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1f1f1f;
  font-weight: 500;
}
.ps-crumb a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s ease;
}
.ps-crumb a:hover { color: #c30d23; }
.ps-crumb .sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 18px;
  padding: 0;
  margin: 0;
  color: #b6bac2;
  flex: 0 0 auto;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
  position: static;
  top: auto;
}
.ps-crumb .sep::before { content: none; display: none; }
.ps-crumb .sep svg {
  display: block;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}


.ps-main { padding: 0; width: 100%; background: #fff; }
.ps-main-inner {
  max-width: var(--site-maxw);
  width: 100%;
  margin: 0 auto;
  padding: 0 0 32px;
  box-sizing: border-box;
}

.ps-panel {
  background: #fff;
  border: none;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 0;
  box-shadow: none;
  padding: 28px 0 8px;
  box-sizing: border-box;
  width: 100%;
}

.ps-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  flex-shrink: 0;
  margin: 0 0 0 auto;
  padding: 4px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  width: auto;
  max-width: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  box-sizing: border-box;
}
.ps-tabs::-webkit-scrollbar { display: none; }
.ps-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  flex: 0 0 auto;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #282323;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.ps-tab:hover { color: #c30d23; background: rgba(195, 13, 35, 0.04); }
.ps-tab:focus-visible {
  outline: 2px solid #c30d23;
  outline-offset: 2px;
}
.ps-tab.is-active {
  color: #c30d23;
  background: rgba(195, 13, 35, 0.08);
  border: none;
  font-weight: 400;
  box-shadow: none;
}
.ps-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: var(--av-fs-caption, 13px);
  font-weight: 700;
  color: #8a93a3;
  background: rgba(15, 23, 42, 0.06);
}
.ps-tab.is-active .ps-tab-count {
  color: #c30d23;
  background: rgba(195, 13, 35, 0.12);
}

/* Category sections */
.ps-cat-section { scroll-margin-top: 124px; padding-top: 8px; margin-bottom: 36px; }
.ps-cat-section:last-of-type { margin-bottom: 8px; }
.ps-section-head { text-align: center; margin-bottom: 24px; padding-bottom: 4px; }
.ps-section-head h2 { /* type roles via type-v2 */  margin: 0; display: inline-block; font-weight: 400; letter-spacing: 0.01em; line-height: 1.3; }
.ps-section-head h2::after { content: ""; display: block; width: 40px; height: 3px; margin: 14px auto 0; border-radius: 999px; background: linear-gradient(90deg, #c30d23, #ff4d5e); }
.ps-tab-count { display: none !important; }
.ps-empty-inline { padding: 28px 16px; text-align: center; color: #555; background: #fafbfc; border: 1px dashed rgba(15, 23, 42, 0.12); border-radius: 8px; }
.ps-tabs { margin-left: auto; }

.ps-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 20px;
}
.ps-meta-t {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #282323;
}
.ps-meta-n {
  font-size: var(--av-fs-caption, 13px);
  color: #555555;
  font-weight: 400;
}

.ps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 20px;
  justify-content: start;
}

/* 分类列表：CSS 驱动筛选（只改 panel[data-filter]，零逐卡 DOM） */
.ph-series-panel[data-filter]:not([data-filter="all"]) .ps-card {
  display: none !important;
}
.ps-card.is-search-hidden,
.ph-series-panel .ps-card.is-page-hidden,
.ph-page--class-list .ph-series-panel[data-filter] .ps-card.is-page-hidden,
.ph-page--class-list .ph-series-panel[data-filter] .ps-card.is-search-hidden {
  display: none !important;
}
.ph-page--class-list .ps-card-cta {
  display: none !important;
}
.ph-series-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 0;
  padding: 0;
}
.ph-page--class-list .ph-series-panel:not(.is-empty) {
  min-height: calc(
    var(--ps-fit-rows, 2) * (var(--ps-media-h, 200px) + var(--ps-card-body-h, 52px))
    + (var(--ps-fit-rows, 2) - 1) * var(--ps-card-gap-y, 10px)
  );
}
.ph-page--class-list .ph-series-pager {
  margin-top: 12px;
  margin-bottom: 0;
  padding: 0;
  flex: 0 0 auto;
}
.ph-series-pager[hidden] {
  display: none !important;
}
.ph-pager-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
  color: #404040;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ph-pager-btn:hover:not(:disabled):not(.is-active) {
  border-color: rgba(195, 13, 35, 0.35);
  color: #c30d23;
}
.ph-pager-btn.is-active {
  background: #c30d23;
  border-color: #c30d23;
  color: #fff;
  font-weight: 700;
  cursor: default;
}
.ph-pager-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.ph-pager-ellipsis {
  color: #94a3b8;
  font-size: 13px;
  padding: 0 2px;
  user-select: none;
}
.ph-series-panel.is-empty .ps-grid {
  display: none !important;
}
.ph-series-panel.is-empty .ph-series-empty {
  display: block;
}
.ph-series-empty {
  display: none;
}
.ph-series-empty-note {
  margin: 0;
}
.ph-series-empty-note--all,
.ph-series-empty-note--series,
.ph-series-empty-note--search {
  display: none;
}
.ph-series-empty.is-all-scope .ph-series-empty-note--all {
  display: block;
}
.ph-series-empty.is-series-scope .ph-series-empty-note--series {
  display: block;
}
.ph-series-empty.is-search-scope .ph-series-empty-note--search {
  display: block;
}

/* 首屏整网格一次渐现；筛选本身不做动画，保证点按即时出结果 */
.ph-page--class-list .ps-grid.is-grid-enter {
  animation: phClassGridIn 0.42s ease both;
}
@keyframes phClassGridIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-page--class-list .ps-grid.is-grid-enter {
    animation: none;
  }
}
.ph-page.ph-page--class-list {
  /*
   * 列表卡尺寸：跟 type-v2 的 --site-maxw 三档走，封面比例与产品图一致 16:10。
   * 宽度由内容区算出；高度再用 100svh + --ps-fit-rows 封顶，保证分屏内不裁切。
   * --ps-fit-rows 由 JS 写入：矮屏 2（每页 6），高屏 3（每页 9）。
   */
  --ps-ratio-w: 16;
  --ps-ratio-h: 10;
  --ps-card-cols: 3;
  --ps-fit-rows: 2;
  --ps-sidebar-w: 272px;
  --ps-layout-gap: 24px;
  --ps-card-gap-x: 12px;
  --ps-card-gap-y: 10px;
  --ps-card-body-h: 52px;
  --ps-toolbar-h: 60px;
  --ps-list-pad-y: 20px;
  --ps-pager-reserve: 45px;
  --ps-fit-slack: 4px;
  /* 单列内容宽（随 --site-maxw / 视口变化） */
  --ps-col-w: calc(
    (
      min(100vw - 48px, var(--site-maxw, 1124px))
      - var(--ps-sidebar-w)
      - var(--ps-layout-gap)
      - (var(--ps-card-cols) - 1) * var(--ps-card-gap-x)
    ) / var(--ps-card-cols)
  );
  /* 由列宽推封面高 */
  --ps-media-h-from-w: calc(var(--ps-col-w) * var(--ps-ratio-h) / var(--ps-ratio-w));
  /* 分屏 N 行预算：封面高不得超过此值（含 slack，避免 toolbar/pager 实测偏差裁切） */
  --ps-media-h-cap: calc(
    (
      100svh
      - 64px
      - var(--ps-toolbar-h)
      - var(--ps-list-pad-y)
      - var(--ps-pager-reserve)
      - var(--ps-fit-slack)
      - (var(--ps-fit-rows) - 1) * var(--ps-card-gap-y)
      - var(--ps-fit-rows) * var(--ps-card-body-h)
    ) / var(--ps-fit-rows)
  );
  --ps-media-h: min(var(--ps-media-h-from-w), max(72px, var(--ps-media-h-cap)));
  --ps-card-w: min(var(--ps-col-w), calc(var(--ps-media-h) * var(--ps-ratio-w) / var(--ps-ratio-h)));
  --ph-card-body-h: var(--ps-card-body-h);
  --ph-two-row-min-h: calc(
    var(--ps-fit-rows) * (var(--ps-media-h) + var(--ps-card-body-h))
    + (var(--ps-fit-rows) - 1) * var(--ps-card-gap-y)
  );
}
.ph-page--class-list .ps-grid {
  grid-template-columns: repeat(var(--ps-card-cols), minmax(0, 1fr));
  gap: var(--ps-card-gap-y) var(--ps-card-gap-x);
  align-content: start;
  align-items: stretch;
  grid-auto-rows: auto;
}
.ph-page--class-list .ps-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin-inline: 0;
  border-radius: 8px;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  background: #fff;
  overflow: hidden;
}
.ph-page--class-list .ps-card-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
  flex: 1 1 auto;
}
.ph-page--class-list .ps-card-media {
  position: relative;
  width: 100%;
  /* 高度受 --ps-media-h 封顶，避免 aspect-ratio 把三行撑出 100vh */
  aspect-ratio: auto;
  height: var(--ps-media-h) !important;
  max-height: var(--ps-media-h);
  min-height: 0 !important;
  flex: none !important;
  align-self: stretch;
  background: linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
  overflow: hidden;
}
.ph-page--class-list .ps-card-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  box-sizing: border-box;
  background: transparent;
}
.ph-page--class-list .ps-card-body {
  flex: 0 0 auto;
  padding: 12px 14px 14px;
  gap: 0;
  text-align: center;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.ph-page--class-list .ps-card-t {
  margin: 0;
  text-align: center;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  max-width: 100%;
}
.ph-page--class-list .ps-card-d {
  display: none;
}
/* 桌面：3 列；行数由 --ps-fit-rows（JS）决定，每页 6 或 9 */
@media (min-width: 901px) {
  .ph-page.ph-page--class-list {
    --ps-card-cols: 3;
    /* 固定正文区高度（与原先含小字时一致），仅标题垂直居中，卡片外轮廓不变 */
    --ps-card-body-h: 86px;
  }
  .ph-page.ph-page--class-list[data-fit-rows="3"] {
    --ps-fit-rows: 3;
  }
  .ph-page.ph-page--class-list[data-fit-rows="2"] {
    --ps-fit-rows: 2;
  }
  .ph-page.ph-page--class-list .ps-card-body {
    padding: 8px 12px 10px;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: var(--ps-card-body-h, 86px);
    min-height: var(--ps-card-body-h, 86px);
    max-height: var(--ps-card-body-h, 86px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    overflow: hidden;
  }
  .ph-page.ph-page--class-list .ps-card-t {
    flex: 0 0 auto;
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    line-height: 1.35;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    text-overflow: ellipsis;
    word-break: break-word;
  }
  .ph-page.ph-page--class-list .ps-card-d {
    display: none !important;
  }
  /* 分类列表网格列数由 --ps-card-cols 控制，避免被通用 .ps-grid 两列规则覆盖 */
  .ph-page.ph-page--class-list .ps-grid {
    grid-template-columns: repeat(var(--ps-card-cols), minmax(0, 1fr));
  }
}

.ph-page--class-list .ps-card {
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.ph-page--class-list .ps-card:hover {
  transform: none;
  border-color: rgba(195, 13, 35, 0.32);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  background-color: #fff;
}
.ph-page--class-list .ps-card-media img {
  transition: none;
}
.ph-page--class-list .ps-card:hover .ps-card-media img {
  transform: none;
}
.ph-page--class-list .ps-card-media::after {
  display: none;
}

.ps-card {
  background: #fff;
  border: 1px solid #e8ebf0;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
}
.ps-card:hover {
  border-color: rgba(195, 13, 35, 0.28);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  transform: translateY(-4px);
}
.ps-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.ps-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  background: #f0f2f6;
  overflow: hidden;
}
.ps-card-media.is-empty {
  background:
    radial-gradient(ellipse 70% 55% at 78% 100%, rgba(195, 13, 35, 0.35), transparent 58%),
    linear-gradient(165deg, #1a1018 0%, #3a0d14 48%, #6e141b 100%);
}
.ps-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
  transition: transform 0.35s ease;
}
.ps-card:hover .ps-card-media img {
  transform: scale(1.04);
}
.ps-card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.18));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.ps-card:hover .ps-card-media::after { opacity: 1; }

.ps-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  background: #c30d23;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ps-badge.new {
  background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.28);
}

.ps-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 18px 18px 20px;
  box-sizing: border-box;
}
.ps-card-t { /* type roles via type-v2；最多两行省略 + title tip */
  margin: 0 0 8px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}
.ps-card-d {
  margin: 0 0 16px;
  flex: 1 1 auto;
  font-size: var(--av-fs-caption, 13px);
  line-height: 1.6;
  color: #404040;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* ps-card-cta chip style in cards-v2 */

.ps-empty {
  text-align: center;
  padding: 56px 24px;
  background: #fafbfc;
  border: 1px dashed #d5dae3;
  border-radius: 4px;
}
.ps-empty h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #282323;
}
.ps-empty p {
  margin: 0;
  font-size: 14px;
  color: #404040;
}

.ps-page .ps-cta {
  position: relative;
  margin-top: 0;
  color: #fff;
  overflow: hidden;
  background-color: #170707;
  background-image:
    radial-gradient(ellipse 70% 140% at 92% 50%, rgba(255, 60, 40, 0.28) 0%, rgba(180, 20, 16, 0.12) 35%, transparent 68%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, transparent 42%, transparent 58%, rgba(0, 0, 0, 0.14) 100%),
    linear-gradient(
      90deg,
      #560c0b 0%,
      #350709 5%,
      #220509 10%,
      #170708 16%,
      #180809 22%,
      #210c0b 28%,
      #2c0f0b 35%,
      #38100e 40%,
      #44130f 45%,
      #511411 50%,
      #5f1512 55%,
      #6e1614 60%,
      #7e1814 65%,
      #901915 70%,
      #9f1815 75%,
      #af1716 80%,
      #bc1616 85%,
      #c71717 90%,
      #ce1817 95%,
      #d41d15 100%
    );
  background-size: cover;
  background-position: center;
  border-top: none;
  width: 100%;
}
.ps-page .ps-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('/dist/images/home/home-cta-bg.png') center / cover no-repeat;
  pointer-events: none;
}
.ps-cta-inner {
  position: relative;
  z-index: 1;
  max-width: var(--site-maxw);
  width: 100%;
  margin: 0 auto;
  height: 143px;
  padding: 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-sizing: border-box;
}
.ps-cta h2 {
  margin: 0;
  color: #fff !important;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.ps-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  background: transparent;
  min-height: 0;
}
.ps-cta-btn:hover {
  background: #fff;
  color: #c30d23;
}

.ps-card.is-reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: psCardIn 0.45s ease forwards;
}
/* 分类列表页：筛选切换时不做逐卡入场，避免卡顿 */
.ph-page--class-list .ps-grid .ps-card,
.ph-page--class-list .ps-grid .ps-card.is-reveal {
  opacity: 1;
  transform: none;
  animation: none;
}
@keyframes psCardIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .ps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .ph-page.ph-page--class-list .ps-grid {
    grid-template-columns: repeat(var(--ps-card-cols), minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .ps-hero-inner,
  .ps-main-inner { padding-left: 24px; padding-right: 24px; padding-bottom: 24px; }
  .ps-cta-inner { padding-left: 24px; padding-right: 24px; }
  .ps-panel { padding: 20px 16px 24px; }
  .ps-toolbar-inner {
    flex-wrap: wrap;
    gap: 0;
    height: auto;
    min-height: 0;
    padding: 0;
  }
  .ps-toolbar {
    height: auto;
    min-height: 0;
  }
  .ps-tabs {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    border-radius: 0;
    padding: 4px 16px 10px;
  }
  .ps-tab {
    flex: 1 1 auto;
    padding: 8px 14px;
    font-size: var(--av-fs-caption, 13px);
    border-radius: 0;
  }
  .ps-cta-inner { flex-direction: column; text-align: center; height: auto; min-height: 143px; padding: 28px 24px; }
  .ps-cta h2 { font-size: 20px; }
}
@media (max-width: 1100px) {
  /* 上下布局时侧栏已不占列宽，封面高度计算需同步去掉侧栏预留 */
  .ph-page.ph-page--class-list {
    --ps-sidebar-w: 0px;
    --ps-layout-gap: 0px;
  }
}
@media (max-width: 900px) {
  /* 选择器需与桌面 .ph-page.ph-page--class-list 同级，否则 --ps-sidebar-w/--ps-card-cols 覆盖失败，封面高会被压成几像素 */
  .ph-page.ph-page--class-list {
    --ps-card-cols: 2;
    --ps-sidebar-w: 0px;
    --ps-layout-gap: 0px;
    --ps-card-gap-x: 10px;
    --ps-card-gap-y: 10px;
    --ps-card-body-h: 48px;
    --ps-media-h-cap: 220px;
    --ps-pager-reserve: 72px;
  }
  .ph-page--class-list .ph-series-pager {
    margin-top: 20px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .ph-page--class-list .ps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .ph-page--class-list .ps-card {
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
    max-width: none;
  }
  .ph-page--class-list .ps-card-media {
    min-height: 96px !important;
  }
  .ph-page--class-list .ps-card-body {
    padding: 10px 8px 12px;
  }
  .ph-page--class-list .ps-card-t {
    font-size: var(--av-fs-caption, 13px);
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
  }
  .ph-page--class-list .ps-card-d {
    display: none;
  }
  .ph-page--class-list .ps-badge {
    font-size: 10px;
    padding: 2px 6px;
  }
}
@media (max-width: 640px) {
  .ps-grid { grid-template-columns: 1fr; gap: 16px; }
  .ph-page--class-list .ps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .ph-page.ph-page--class-list {
    --ps-pager-reserve: 80px;
  }
  .ph-page--class-list .ph-series-pager {
    margin-top: 24px;
    padding-top: 6px;
    row-gap: 10px;
  }
  .ps-hero { height: 280px; min-height: 280px; }
  .ps-hero-inner { padding-top: 0; padding-bottom: 0; }
  .ps-toolbar { top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .ps-card,
  .ps-card-media img,
  .ps-tab,
  .ps-card-cta { transition: none !important; }
  .ps-card:hover { transform: none; }
  .ps-card.is-reveal { opacity: 1; transform: none; animation: none; }
  .ps-card:hover .ps-card-media img { transform: none; }
}

/* av-fold-mobile */
/* Dual/triple fold (Mate XT unfolded CSS size, or a hinge). Excludes 1920 desktop and 1440x900 laptop. */
@media (min-width: 1200px) and (max-width: 1650px) and (min-aspect-ratio: 4/3) and (max-aspect-ratio: 29/20),
       (min-width: 769px) and (max-width: 1199px) and (max-aspect-ratio: 3/2),
       (min-width: 769px) and (max-width: 1200px) and (max-aspect-ratio: 3/4),
       (spanning: single-fold-vertical),
       (spanning: single-fold-horizontal),
       (horizontal-viewport-segments: 2),
       (horizontal-viewport-segments: 3),
       (vertical-viewport-segments: 2),
       (vertical-viewport-segments: 3) {

  .ps-hero-inner,
  .ps-main-inner { padding-left: 24px; padding-right: 24px; padding-bottom: 24px; }
  .ps-cta-inner { padding-left: 24px; padding-right: 24px; }
  .ps-panel { padding: 20px 16px 24px; }
  .ps-toolbar-inner {
    flex-wrap: wrap;
    gap: 0;
    height: auto;
    min-height: 0;
    padding: 0;
  }
  .ps-toolbar {
    height: auto;
    min-height: 0;
  }
  .ps-tabs {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    border-radius: 0;
    padding: 4px 16px 10px;
  }
  .ps-tab {
    flex: 1 1 auto;
    padding: 8px 14px;
    font-size: var(--av-fs-caption, 13px);
    border-radius: 0;
  }
  .ps-cta-inner { flex-direction: column; text-align: center; height: auto; min-height: 143px; padding: 28px 24px; }
  .ps-cta h2 { font-size: 20px; }


  /* 选择器需与桌面 .ph-page.ph-page--class-list 同级，否则 --ps-sidebar-w/--ps-card-cols 覆盖失败，封面高会被压成几像素 */
  .ph-page.ph-page--class-list {
    --ps-card-cols: 2;
    --ps-sidebar-w: 0px;
    --ps-layout-gap: 0px;
    --ps-card-gap-x: 10px;
    --ps-card-gap-y: 10px;
    --ps-card-body-h: 48px;
    --ps-media-h-cap: 220px;
    --ps-pager-reserve: 72px;
  }
  .ph-page--class-list .ph-series-pager {
    margin-top: 20px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .ph-page--class-list .ps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .ph-page--class-list .ps-card {
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
    max-width: none;
  }
  .ph-page--class-list .ps-card-media {
    min-height: 96px !important;
  }
  .ph-page--class-list .ps-card-body {
    padding: 10px 8px 12px;
  }
  .ph-page--class-list .ps-card-t {
    font-size: var(--av-fs-caption, 13px);
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
  }
  .ph-page--class-list .ps-card-d {
    display: none;
  }
  .ph-page--class-list .ps-badge {
    font-size: 10px;
    padding: 2px 6px;
  }
}

/* 笔记本矮屏：系列列表密度 */
@media (min-width: 1024px) and (max-width: 1440px) and (max-height: 900px) {
  .ph-page--class-list .ph-class-list,
  .ps-page .ps-grid {
    padding-left: var(--site-gutter, 32px);
    padding-right: var(--site-gutter, 32px);
    box-sizing: border-box;
  }
  .ps-card-body { padding: 10px 12px; }
  .ps-card-d { -webkit-line-clamp: 2; line-clamp: 2; }
}
@media (min-width: 1024px) and (max-width: 1440px) and (max-height: 700px) {
  .ps-card-d { display: none; }
  .ps-card-media { min-height: 110px; }
}
