/* Product Hub v2 — 8.17 prototype + list polish */
.ph-page {
  background: #F3F6FC;
  color: #282323;
  padding: 0;
}
.ph-hero {
  position: relative;
  height: 400px;
  min-height: 400px;
  box-sizing: border-box;
  display: flex;
  /* 与工程案例 cases-hero 一致：文案靠上，非整块垂直居中 */
  align-items: flex-start;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(ellipse 72% 58% at 82% 100%, rgba(147, 78, 220, 0.42), transparent 58%),
    radial-gradient(ellipse 48% 50% at 12% 92%, rgba(52, 96, 196, 0.32), transparent 54%),
    linear-gradient(180deg, #050508 0%, #0b1430 32%, #152a5c 58%, #3d2a7a 82%, #6a34a8 100%);
}
/* 有栏目页头 Banner：用绝对定位 <img> 铺底（比 CSS 变量更抗 JS 改 style / CDN 旧缓存） */
.ph-hero.hero-has-cover {
  background: #050508;
}
.ph-hero-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 略偏上：常见宽 Banner 素材中部偏上更有层次，避免只裁到过暗区域 */
  object-position: center 38%;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.ph-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--site-maxw);
  width: 100%;
  margin: 0 auto;
  /* 对齐 .cases-hero .inner：顶距 120px */
  padding: 120px 0 0;
  box-sizing: border-box;
  text-align: left;
  min-width: 0;
}
.ph-hero h1 {
  margin: 0 0 16px;
  /* 字号/字重交给 type-v2 Page 档（与工程案例等栏目 Banner 一致） */
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.2;
  color: #fff;
  max-width: 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}
.ph-hero .ph-hero-sub {
  margin: 0;
  max-width: 800px;
  /* 字号交给 type-v2（.ph-hero .sub = lead+2，与工程案例一致） */
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}
.ph-toolbar {
  position: sticky;
  top: 64px;
  z-index: 40;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  height: 60px;
  min-height: 60px;
  box-sizing: border-box;
}
.ph-toolbar-inner {
  max-width: var(--site-maxw);
  margin: 0 auto;
  padding: 0 0;
  height: 60px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
}
.ph-crumb {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1;
  letter-spacing: 0.01em;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.ph-crumb a,
.ph-crumb .cur {
  display: inline-flex;
  align-items: center;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}
.ph-crumb a {
  color: #6b7280;
  transition: color 0.15s ease;
}
.ph-crumb-home {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.ph-home-icon {
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.72;
}
.ph-crumb a:hover { color: #c30d23; }
.ph-crumb a:hover .ph-home-icon { opacity: 1; }
/* 细线 chevron，替代生硬的「>」字符 */
.ph-crumb .sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 18px;
  margin: 0;
  padding: 0;
  font-size: 0;
  line-height: 0;
  color: #b6bac2;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
}
.ph-crumb .sep::before { content: none; display: none; }
.ph-crumb .sep svg {
  display: block;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.ph-crumb a:not(.ph-crumb-home) {
  color: #6b7280;
  min-width: 0;
  max-width: min(280px, 42vw);
  overflow: hidden;
  text-overflow: ellipsis;
}
.ph-crumb .cur {
  color: #1f1f1f;
  font-weight: 500;
  min-width: 0;
  max-width: min(420px, 52vw);
  overflow: hidden;
  text-overflow: ellipsis;
}
.ph-pills {
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: min(920px, 78vw);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  box-sizing: border-box;
  padding: 4px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
}
.ph-pills::-webkit-scrollbar { display: none; }
.ph-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  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;
}
.ph-pill:hover { color: #c30d23; background: rgba(195, 13, 35, 0.04); }
.ph-pill:focus-visible {
  outline: 2px solid #c30d23;
  outline-offset: 1px;
}
.ph-pill.is-active {
  background: rgba(195, 13, 35, 0.1);
  border: none;
  color: #c30d23;
  font-weight: 700;
}
/* 与 .ph-toolbar-inner 同宽同左右边距，保证筛选栏与卡片左右对齐 */
.ph-section {
  max-width: var(--site-maxw);
  margin: 24px auto 28px;
  padding: 36px 0 32px;
  box-sizing: border-box;
  scroll-margin-top: 136px;
  overflow: visible;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}
.ph-section + .ph-section { margin-top: 0; }
.ph-section-head { text-align: center; margin-bottom: 28px; padding-bottom: 4px; }
/* 系列卡自身锚点同样避开顶栏 + sticky 筛选条 */
.ph-series-card[id] { scroll-margin-top: 136px; }
.ph-section-head h2 { /* type roles via type-v2 */ 
  margin: 0 0 10px;
  display: inline-block;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.ph-section-head h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #c30d23, #ff4d5e);
}
.ph-section-head p { /* type roles via type-v2 */  margin: 14px auto 0; color: #555; line-height: 1.7; max-width: 640px; }
.ph-section-inner {
  width: 100%;
  max-width: var(--site-maxw);
  margin: 0 auto;
  box-sizing: border-box;
}
/* —— AI 应用产品：通栏 582 + 底图 —— */
.ph-section--ai {
  max-width: none;
  width: 100%;
  height: 582px;
  min-height: 582px;
  margin: 0;
  padding: 40px 0 36px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background-color: transparent;
  background-image: url("/dist/images/ai-product-bg.png");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: visible;
}
/* 卡片墙（AI / IP）：系列 Banner 铺满卡片 + 标题 + 了解更多 */
.ph-section--cards {
  overflow: visible;
}
.ph-section--cards:not(.ph-section--ai) {
  /* 预留：非 AI 卡片墙 */
  padding-left: 0;
  padding-right: 0;
}
.ph-section--cards .ph-section-inner {
  max-width: var(--site-maxw);
  width: 100%;
  margin: 0 auto;
  padding: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  box-sizing: border-box;
}
.ph-section--cards .ph-section-head {
  margin-bottom: 28px;
}
.ph-section--cards .ph-section-head h2 { /* type roles via type-v2 */ 
  font-weight: 400;
}
.ph-section--cards .ph-section-head h2::after {
  display: none;
}
.ph-section--cards .ph-section-head p { /* type roles via type-v2 */ 
  margin-top: 10px;
  font-weight: 400;
}
/* 五张 202×270；固定间距不黏连；窄屏可横滑；箭头在内容区外 */
.ph-section--cards .ph-rail {
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 0 4px;
  background: transparent;
  border: none;
  border-radius: 0;
}
.ph-section--cards .ph-rail-viewport {
  padding: 4px 0 8px;
  overflow: hidden; /* 桌面用箭头 + transform 滑动，不露出滚动条 */
  width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ph-section--cards .ph-rail-viewport::-webkit-scrollbar {
  display: none;
}
.ph-section--cards .ph-rail-track {
  box-sizing: border-box;
  width: max-content;
  min-width: 100%;
  max-width: none;
  gap: 20px;
  justify-content: flex-start;
  align-items: stretch;
}
.ph-section--cards .ph-rail-btn {
  background: #fff;
  color: #64748b;
  border: none;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}
/* 箭头在中间内容区外侧，不计入内容宽（需压过 .ph-rail-btn.prev/next 的 left:0） */
.ph-section--cards .ph-rail-btn.prev {
  left: -56px;
  right: auto;
}
.ph-section--cards .ph-rail-btn.next {
  left: auto;
  right: -56px;
}
.ph-section--cards .ph-rail-btn:hover {
  background: #fff;
  color: #c30d23;
  border: none;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.16);
  transform: scale(1.04);
}
.ph-section--cards .ph-series-card--link {
  box-sizing: border-box;
  position: relative;
  flex: 0 0 202px;
  width: 202px;
  min-width: 202px;
  max-width: 202px;
  height: 270px;
  min-height: 270px;
  max-height: 270px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  padding: 0;
  background-color: #fff;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  border-radius: var(--av-radius-card, 4px);
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.22s ease;
  overflow: hidden;
}
.ph-section--cards .ph-series-card--link:hover {
  transform: translateY(-4px);
  box-shadow: none;
}
/* 系列 Banner 作卡片底图；标题在「了解更多」正上方 */
.ph-section--cards .ph-series-card--link.ph-series-card--bg .ph-series-name,
.ph-section--cards .ph-series-card--link.ph-series-card--bg .ph-series-more {
  z-index: 2;
}
.ph-section--cards .ph-series-card--link.ph-series-card--no-media {
  background-image: none;
}
.ph-section--cards .ph-series-card--link .ph-series-name { /* type roles via type-v2 */ 
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 100%;
  margin: 0 0 10px;
  padding: 0 10px;
  text-align: center;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.ph-section--cards .ph-series-more { /* type roles via type-v2 */ 
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  min-width: 64px;
  max-width: 64px;
  height: 20px;
  margin: 0 0 28px;
  padding: 0;
  font-weight: 400;
  line-height: 1;
  background: #e8e8e8;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}
.ph-section--cards .ph-series-card--link:hover .ph-series-more,
.ph-section--cards .ph-series-card--link:focus-visible .ph-series-more {
  background: #c30d23;
  color: #fff;
}

/* —— IP / 非IP / 矩阵·音视频·显控：共用底部圆盘舞台 —— */
.ph-hardware-stage {
  position: relative;
  width: 100%;
  max-width: var(--site-maxw);
  margin: 0 auto 60px;
  padding: 0 0;
  box-sizing: border-box;
  overflow: visible;
}
/* 大圆环包住底部三列（矩阵 / 音视频 / 显控），对齐标注椭圆尺度 */
.ph-hardware-stage__foot {
  position: absolute;
  left: 50%;
  bottom: -6.5%;
  width: 154.5%;
  max-width: none;
  height: clamp(420px, 52vw, 700px);
  transform: translateX(-50%);
  background: url("/dist/images/product-circle-foot.png") no-repeat center bottom;
  background-size: 100% auto;
  pointer-events: none;
  z-index: 0;
}
.ph-hardware-stage > .ph-section {
  position: relative;
  z-index: 1;
}
.ph-hardware-stage .ph-section--ip,
.ph-hardware-stage .ph-section--fiber {
  margin-bottom: 0;
}
.ph-hardware-stage .ph-section--trio {
  padding-bottom: clamp(72px, 9vw, 110px);
  margin-bottom: 0;
  margin-top: 0;
}
.ph-hardware-stage .ph-trio-grid,
.ph-hardware-stage .ph-trio-col,
.ph-hardware-stage .ph-trio-card {
  position: relative;
  z-index: 1;
}

/* —— IP / 非IP：左大(min 570×307，内容可撑高) + 右栏等高填满，子系列尽量完整展示 —— */
.ph-section--ip,
.ph-section--fiber {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 48px 0;
}
.ph-section--ip .ph-section-head,
.ph-section--fiber .ph-section-head {
  margin-bottom: 28px;
}
.ph-section--ip .ph-section-head h2,
.ph-section--fiber .ph-section-head h2 { /* type roles via type-v2 */ 
  font-weight: 400;
}
.ph-section--ip .ph-section-head h2::after,
.ph-section--fiber .ph-section-head h2::after {
  display: none;
}
.ph-section--ip .ph-section-head p,
.ph-section--fiber .ph-section-head p {
  margin-top: 10px;
  color: #555;
  font-weight: 400;
}
.ph-ip-grid {
  --ip-gap: clamp(12px, calc(var(--site-maxw) * 16 / 1124), 24px);
  --ip-side-gap: clamp(10px, calc(var(--site-maxw) * 15.5 / 1124), 20px);
  display: grid;
  grid-template-columns: minmax(0, 570fr) minmax(0, 278fr);
  align-items: stretch;
  gap: var(--ip-gap);
  width: 100%;
  max-width: var(--site-maxw);
  margin: 0 auto;
  box-sizing: border-box;
}
.ph-ip-card--feature {
  width: auto;
  min-width: 0;
  display: grid;
  height: auto;
  min-height: 0;
  overflow: hidden;
  /* 高度只由 ::before 的 570×307 决定，列表再长也不撑高 */
}
/* 同格叠放：::before 锁定卡片高度 */
.ph-ip-card--feature::before {
  content: "";
  grid-area: 1 / 1;
  width: 100%;
  padding-bottom: calc(307 / 570 * 100%);
  pointer-events: none;
}
.ph-ip-card--feature > .ph-ip-card-body {
  grid-area: 1 / 1;
  /* 不参与撑高；高度跟 ::before，超出滚动 */
  height: 0;
  min-height: 100%;
  align-self: stretch;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
/* 右侧整栏高度 = 左侧卡；小卡均分撑满剩余空间 */
.ph-ip-side {
  width: auto;
  min-width: 0;
  height: 0;
  min-height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--ip-side-gap);
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}
.ph-ip-card--sm,
.ph-ip-side[data-count="1"] .ph-ip-card--sm,
.ph-ip-side[data-count="2"] .ph-ip-card--sm,
.ph-ip-side[data-count="3"] .ph-ip-card--sm {
  flex: 1 1 0;
  min-height: 0;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.ph-ip-card {
  position: relative;
  box-sizing: border-box;
  background-color: #fff;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  border-radius: var(--av-radius-card, 4px);
  box-shadow: none;
  overflow: hidden;
}
.ph-ip-card.ph-ip-card--sm {
  overflow: hidden;
}
.ph-ip-card.has-bg {
  background-color: #f7fafc;
}
/* 左大卡底图：铺满容器即可 */
.ph-ip-card.ph-ip-card--feature.has-bg {
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
.ph-ip-card-body {
  position: relative;
  z-index: 1;
  height: 100%;
  box-sizing: border-box;
  padding: clamp(14px, calc(var(--site-maxw) * 22 / 1124), 28px) clamp(14px, calc(var(--site-maxw) * 24 / 1124), 30px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* 有底图时文字区不铺满，避免挡住右侧插画 */
  max-width: 58%;
}
.ph-ip-card--sm .ph-ip-card-body {
  max-width: 100%;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  justify-content: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
  padding-top: clamp(10px, calc(var(--site-maxw) * 14 / 1124), 18px);
  padding-bottom: clamp(10px, calc(var(--site-maxw) * 14 / 1124), 18px);
}
/* 仅两个主系列（右侧 1 张卡）：系列图铺满整张右卡，文案让出左侧可读区 */
.ph-ip-side[data-count="1"] .ph-ip-card--sm.has-bg,
.ph-ip-card--sm.ph-ip-card--side-logo {
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
}
.ph-ip-side[data-count="1"] .ph-ip-card--sm.has-bg .ph-ip-card-body,
.ph-ip-card--sm.ph-ip-card--side-logo .ph-ip-card-body {
  max-width: 55%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 62%, rgba(255, 255, 255, 0) 100%);
  box-sizing: border-box;
  border-radius: var(--av-radius-card, 4px) 0 0 var(--av-radius-card, 4px);
}
.ph-ip-card-title {
  margin: 0;
  font-size: clamp(14px, calc(var(--site-maxw) * 16 / 1124), 18px);
  font-weight: 700;
  line-height: 1.35;
  color: #282323;
}
.ph-ip-card-title a {
  color: inherit;
  text-decoration: none;
}
.ph-ip-card-title a:hover {
  color: #c30d23;
}
.ph-ip-card-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ph-ip-card-list li {
  min-width: 0;
}
.ph-ip-card-list a,
.ph-ip-card-line a {
  display: block;
  max-width: 100%;
  font-size: clamp(12px, calc(var(--site-maxw) * 13 / 1124), 14px);
  line-height: 1.55;
  color: #6b7280;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ph-ip-card-list a::before,
.ph-ip-card-line a::before {
  content: ">";
  margin-right: 6px;
  color: #9ca3af;
}
.ph-ip-card-list a:hover,
.ph-ip-card-line a:hover {
  color: #c30d23;
}
.ph-ip-card-line {
  margin: 6px 0 0;
}

/* —— 矩阵 / 音视频 / 显控：三列等宽卡 279×247 —— */
.ph-section--trio {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 48px 0 56px;
}
.ph-trio-grid {
  --trio-gap: clamp(12px, calc(var(--site-maxw) * 20 / 1124), 28px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--trio-gap);
  width: 100%;
  max-width: var(--site-maxw);
  margin: 0 auto;
  box-sizing: border-box;
}
.ph-trio-col {
  flex: 279 1 0;
  width: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.ph-section--trio-single .ph-trio-col {
  flex: 0 1 360px;
  width: auto;
  max-width: 420px;
  margin: 0 auto;
}
.ph-trio-heading {
  margin: 0 0 16px;
  text-align: center;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  color: #282323;
}
.ph-trio-heading::after {
  display: none;
}
.ph-trio-card {
  width: 100%;
  aspect-ratio: 279 / 247;
  flex: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ph-trio-card.has-bg {
  background-size: cover;
  background-position: right bottom;
  background-repeat: no-repeat;
}
.ph-trio-card .ph-ip-card-body {
  max-width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  justify-content: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(14px, calc(var(--site-maxw) * 18 / 1124), 22px) clamp(14px, calc(var(--site-maxw) * 16 / 1124), 20px);
}
.ph-trio-card.has-bg .ph-ip-card-body {
  max-width: 72%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 55%, rgba(255, 255, 255, 0) 100%);
  border-radius: var(--av-radius-card, 4px) 0 0 var(--av-radius-card, 4px);
}
.ph-trio-card .ph-ip-card-list {
  margin-top: 0;
  gap: 4px;
}
.ph-trio-card .ph-ip-card-list a {
  font-size: clamp(12px, calc(var(--site-maxw) * 13 / 1124), 14px);
  line-height: 1.5;
}

/* trio 轮播轨道样式在 .ph-rail 之后覆写，避免被灰底轨样式盖住 */
.ph-rail {
  position: relative;
  overflow: visible;
  margin: 0;
  padding: 20px 56px 8px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #f8f9fb 0%, #f3f5f8 100%);
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.05);
}
.ph-rail-viewport {
  overflow: hidden;
  margin: 0;
  padding: 8px 0 4px;
  min-width: 0;
  width: 100%;
  container-type: inline-size;
}
.ph-rail-track {
  display: flex;
  gap: 20px;
  width: max-content;
  align-items: stretch;
  will-change: transform;
  transition: transform .45s cubic-bezier(.22,1,.36,1), height .35s ease;
}
/* 箭头在左右槽内；垂直位置由 JS 相对封面图居中 */
.ph-rail-btn {
  position: absolute;
  z-index: 3;
  top: 8px;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 50%;
  border: 1px solid rgba(15,23,42,.08);
  background: #fff;
  color: #282323;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(15,23,42,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s, top .2s;
}
.ph-rail-btn:hover { background: #c30d23; color: #fff; border-color: #c30d23; transform: scale(1.06); box-shadow: 0 8px 24px rgba(195,13,35,.28); }
.ph-rail-btn:disabled { opacity: .35; cursor: default; pointer-events: none; transform: none; box-shadow: none; }
.ph-rail-btn.prev { left: 0; right: auto; }
.ph-rail-btn.next { right: 0; left: auto; }
.ph-rail-btn svg { width: 18px; height: 18px; display: block; }

/* —— trio 轮播：主内容与上方 bento 同宽；箭头挂在内容区外侧 —— */
.ph-section--trio-carousel {
  overflow: visible;
}
.ph-section--trio-carousel .ph-section-inner {
  overflow: visible;
}
.ph-rail.ph-rail--trio {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  overflow: visible;
}
.ph-rail.ph-rail--trio .ph-rail-viewport {
  overflow: hidden;
  padding: 0;
  margin: 0;
  width: 100%;
  container-type: inline-size;
}
.ph-section--trio-carousel .ph-trio-grid,
.ph-rail.ph-rail--trio .ph-trio-grid,
.ph-rail.ph-rail--trio .ph-rail-track {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--trio-gap, 20px);
  width: max-content;
  max-width: none;
  margin: 0;
  transition: transform 0.35s ease;
  will-change: transform;
  height: auto !important; /* 取消 AI 轨的等高 JS 锁高 */
}
.ph-section--trio-carousel .ph-trio-col,
.ph-rail.ph-rail--trio .ph-trio-col {
  /* 与非轮播 trio / 上方主区同宽：三列均分内容区 */
  --trio-col-w: calc((100cqi - 2 * var(--trio-gap, 20px)) / 3);
  flex: 0 0 var(--trio-col-w);
  width: var(--trio-col-w);
  min-width: 0;
  max-width: none;
}
.ph-rail.ph-rail--trio .ph-rail-btn {
  width: 46px;
  height: 46px;
  border: none;
  background: #fff;
  color: #64748b;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}
.ph-rail.ph-rail--trio .ph-rail-btn:hover:not(:disabled) {
  background: #fff;
  color: #c30d23;
  border: none;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.16);
  transform: scale(1.04);
}
.ph-rail.ph-rail--trio .ph-rail-btn:disabled {
  opacity: 0.35;
  background: #fff;
  color: #64748b;
  border: none;
  box-shadow: none;
  transform: none;
}
.ph-rail.ph-rail--trio .ph-rail-btn.prev {
  left: -56px;
  right: auto;
}
.ph-rail.ph-rail--trio .ph-rail-btn.next {
  right: -56px;
  left: auto;
}
.ph-rail.ph-rail--trio .ph-rail-btn svg {
  width: 18px;
  height: 18px;
}

/* 系列卡：矮封面 + 等高卡片 + 紧凑产品链 */
.ph-series-card {
  /* 3 个 20px 间距 = 60px，避免末卡挤进箭头槽 */
  flex: 0 0 calc((100cqi - 60px) / 4);
  width: calc((100cqi - 60px) / 4);
  max-width: 320px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: stretch;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  cursor: default;
}
.ph-series-card:hover { transform: none; box-shadow: none; border: none; }
.ph-series-media {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  flex-shrink: 0;
  border-radius: var(--av-radius-card, 4px);
  background: #f0f2f6 center / contain no-repeat;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
.ph-series-media:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}
.ph-series-media:focus-visible {
  outline: 2px solid #c30d23;
  outline-offset: 3px;
}
.ph-series-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}
.ph-series-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15,23,42,0) 38%, rgba(15,23,42,.62) 100%);
  pointer-events: none;
  transition: background .22s ease;
}
.ph-series-media:hover::after {
  background: linear-gradient(180deg, rgba(15,23,42,0) 32%, rgba(15,23,42,.72) 100%);
}
/* 无图：主题红渐变底，无占位图标 */
.ph-series-media.is-empty {
  background:
    radial-gradient(ellipse 70% 55% at 78% 100%, rgba(195, 13, 35, 0.42), transparent 58%),
    radial-gradient(ellipse 45% 50% at 12% 0%, rgba(120, 20, 30, 0.35), transparent 55%),
    linear-gradient(165deg, #1a1018 0%, #3a0d14 48%, #6e141b 100%);
}
.ph-series-media.is-empty::before {
  display: none;
  opacity: 0;
  content: none;
}
.ph-series-media.is-empty[data-grad="0"],
.ph-series-media.is-empty[data-grad="1"],
.ph-series-media.is-empty[data-grad="2"],
.ph-series-media.is-empty[data-grad="3"],
.ph-series-media.is-empty[data-grad="4"],
.ph-series-media.is-empty[data-grad="5"],
.ph-series-media.is-empty[data-grad="6"],
.ph-series-media.is-empty[data-grad="7"] {
  background:
    radial-gradient(ellipse 70% 55% at 78% 100%, rgba(195, 13, 35, 0.42), transparent 58%),
    radial-gradient(ellipse 45% 50% at 12% 0%, rgba(120, 20, 30, 0.35), transparent 55%),
    linear-gradient(165deg, #1a1018 0%, #3a0d14 48%, #6e141b 100%);
}
.ph-series-media.is-empty[data-grad="1"] {
  background:
    radial-gradient(ellipse 65% 50% at 20% 100%, rgba(195, 13, 35, 0.38), transparent 55%),
    linear-gradient(155deg, #140c12 0%, #4a1018 52%, #2a0c14 100%);
}
.ph-series-media.is-empty[data-grad="2"] {
  background:
    radial-gradient(ellipse 60% 55% at 85% 20%, rgba(195, 13, 35, 0.32), transparent 50%),
    linear-gradient(148deg, #1c1016 0%, #5a1420 50%, #241018 100%);
}
.ph-series-media.is-empty[data-grad="3"] {
  background:
    radial-gradient(ellipse 55% 60% at 50% 0%, rgba(138, 12, 24, 0.4), transparent 55%),
    linear-gradient(160deg, #120c14 0%, #3a101c 48%, #6e141b 100%);
}
.ph-series-name {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 12px 14px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.ph-series-name a,
.ph-series-media .ph-series-name {
  color: #fff;
  text-decoration: none;
  display: block;
}
.ph-prod-list {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 2px;
  margin: 0;
  padding: 0 2px 4px;
  text-align: left;
  background: transparent;
  border: none;
}
.ph-prod-list a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 28px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 5px 6px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: #404040;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, padding-left .2s ease;
}
.ph-prod-list a::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid #999;
  border-bottom: 1.5px solid #999;
  transform: rotate(-45deg);
  opacity: .75;
  transition: border-color .2s ease, transform .2s ease;
}
.ph-prod-list a:hover {
  color: #c30d23;
  background: rgba(195, 13, 35, 0.05);
  padding-left: 8px;
  box-shadow: none;
  transform: none;
}
.ph-prod-list a:hover::before {
  border-color: #c30d23;
  opacity: 1;
  transform: rotate(-45deg) translate(1px, 1px);
}
.ph-prod-list a:focus-visible {
  outline: 2px solid #c30d23;
  outline-offset: 1px;
}
.ph-empty { text-align: center; padding: 48px 16px; color: #555555; background: #fff; border: 1px dashed rgba(15,23,42,.12); border-radius: 4px; }
.ph-empty h3 { margin: 0 0 8px; color: #282323; font-size: 16px; }
.ph-empty p { margin: 0; font-size: 14px; }
.ph-cta-strip {
  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;
}
.ph-cta-strip::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;
}
.ph-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;
}
.ph-cta-inner h2 {
  margin: 0;
  color: #fff !important;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.ph-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;
}
.ph-cta-btn:hover { background: #fff; color: #c30d23; }
.ph-cta-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 1100px) {
  .ph-series-card {
    flex-basis: calc((100cqi - 40px) / 3);
    width: calc((100cqi - 40px) / 3);
    max-width: none;
    min-width: 200px;
  }
  .ph-section--cards .ph-series-card--link {
    flex: 0 0 202px;
    width: 202px;
    min-width: 202px;
    max-width: 202px;
    height: 270px;
  }
}
@media (max-width: 900px) {
  .ph-hero-inner, .ph-toolbar-inner, .ph-section, .ph-cta-inner { padding-left: 24px; padding-right: 24px; }
  .ph-hardware-stage {
    padding-left: 24px;
    padding-right: 24px;
  }
  .ph-hardware-stage__foot {
    width: 160%;
    height: clamp(280px, 70vw, 420px);
    bottom: -2%;
  }
  .ph-hardware-stage .ph-section--trio {
    padding-bottom: clamp(56px, 16vw, 88px);
  }
  .ph-section--ai,
  .ph-section--ip,
  .ph-section--fiber,
  .ph-section--trio {
    padding-left: 0;
    padding-right: 0;
  }
  .ph-section--ai {
    height: auto;
    min-height: 0;
  }
  .ph-section--cards .ph-section-inner { padding-left: 16px; padding-right: 16px; }
  .ph-section--cards:not(.ph-section--ai) { padding-left: 24px; padding-right: 24px; }
  .ph-section--cards .ph-rail-track {
    width: max-content;
    min-width: 100%;
    max-width: none;
    justify-content: flex-start;
    gap: 20px;
  }
  .ph-section--cards .ph-rail-viewport {
    overflow-x: auto;
    overflow-y: visible;
  }
  .ph-section--cards .ph-rail-btn { display: none; }
  .ph-section--ip .ph-ip-grid,
  .ph-section--fiber .ph-ip-grid {
    grid-template-columns: 1fr;
  }
  .ph-trio-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .ph-trio-col {
    flex: none;
    width: 100%;
  }
  .ph-trio-card {
    aspect-ratio: 279 / 247;
    min-height: 200px;
  }
  .ph-rail.ph-rail--trio {
    padding-left: 0;
    padding-right: 0;
  }
  .ph-rail.ph-rail--trio .ph-rail-btn { display: none; }
  .ph-section--trio-carousel .ph-trio-grid,
  .ph-rail.ph-rail--trio .ph-trio-grid {
    width: max-content;
    flex-direction: row;
  }
  .ph-section--trio-carousel .ph-trio-col,
  .ph-rail.ph-rail--trio .ph-trio-col {
    --trio-col-w: min(280px, 78vw);
    width: var(--trio-col-w);
    flex: 0 0 var(--trio-col-w);
  }
  .ph-rail.ph-rail--trio .ph-rail-viewport {
    overflow-x: auto;
    overflow-y: visible;
  }
  .ph-ip-card--feature,
  .ph-ip-side {
    width: 100%;
    min-height: 0;
  }
  .ph-ip-card--feature {
    aspect-ratio: auto;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .ph-ip-card--feature::before {
    padding-bottom: calc(307 / 570 * 100%);
    min-height: 220px;
    box-sizing: content-box;
  }
  .ph-ip-card--feature > .ph-ip-card-body {
    overflow: visible;
    max-height: none;
    height: auto;
    min-height: 100%;
  }
  .ph-ip-card.ph-ip-card--feature.has-bg {
    background-size: cover;
    background-position: center right;
  }
  .ph-ip-side {
    gap: 12px;
    overflow: visible;
    max-height: none;
    height: auto;
    min-height: 0;
  }
  .ph-ip-side[data-count="1"] .ph-ip-card--sm,
  .ph-ip-side[data-count="2"] .ph-ip-card--sm,
  .ph-ip-side[data-count="3"] .ph-ip-card--sm {
    flex: none;
    height: auto;
    min-height: min-content;
    max-height: none;
    aspect-ratio: auto;
  }
  .ph-ip-card-body {
    max-width: 70%;
  }
  .ph-toolbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    height: auto;
    min-height: 60px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .ph-toolbar {
    height: auto;
    min-height: 60px;
  }
  .ph-pills { max-width: 100%; }
  .ph-pill { padding: 8px 14px; font-size: var(--av-fs-caption, 13px); }
  .ph-rail {
    padding-left: 48px;
    padding-right: 48px;
  }
  .ph-cta-inner { flex-direction: column; text-align: center; height: auto; min-height: 143px; padding-top: 28px; padding-bottom: 28px; }
  .ph-cta-inner h2 { font-size: 20px; }
}
@media (max-width: 640px) {
  /* 手机 Banner：内容垂直居中 */
  .ph-hero {
    height: auto;
    min-height: 220px;
    max-height: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .ph-hero-inner {
    padding: 28px 16px;
  }
  .ph-hero h1 {
    font-size: 24px !important;
    line-height: 1.25 !important;
    margin-bottom: 12px;
  }
  .ph-hero .ph-hero-sub {
    margin-top: 0;
    font-size: var(--av-fs-caption, 13px) !important;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
  .ph-toolbar-inner { padding-left: 16px; padding-right: 16px; }
  .ph-page--class-list .ph-toolbar-inner {
    padding-left: 12px;
    padding-right: 12px;
  }
  .ph-rail-btn { display: none; }
  .ph-rail { padding-left: 0; padding-right: 0; }
  .ph-rail-viewport { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 20px; }
  .ph-rail-track { transition: none; gap: 14px; }
  .ph-series-card {
    flex-basis: min(78cqi, 280px);
    width: min(78cqi, 280px);
    min-width: 220px;
  }
  .ph-section--cards .ph-series-card--link {
    flex: 0 0 202px;
    width: 202px;
    min-width: 202px;
    max-width: 202px;
    height: 270px;
  }
  .ph-section--cards .ph-rail { padding-left: 0; padding-right: 0; }
  .ph-ip-card-body {
    max-width: 100%;
  }
  .ph-ip-card--feature {
    aspect-ratio: auto;
    min-height: 260px;
  }
  .ph-ip-card--sm {
    aspect-ratio: auto;
    min-height: 84px;
  }
  .ph-trio-card {
    aspect-ratio: auto;
    min-height: 200px;
  }
  .ph-series-name { font-size: 14px; padding: 12px 12px; }
  .ph-series-media { aspect-ratio: 16 / 10; height: auto; }
  .ph-prod-list { gap: 2px; }
  .ph-prod-list a { font-size: var(--av-fs-caption, 13px); min-height: 26px; }
  .ph-section { padding-top: 36px; }
  .ph-section-head h2 { font-size: 20px; }
  /* 收紧面包屑与分类卡间距（桌面仍保留 60px 上边距） */
  .ph-page--hub .ph-section--hub-grid {
    margin-top: 12px;
    margin-bottom: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ph-series-card,
  .ph-series-media,
  .ph-prod-list a,
  .ph-rail-btn,
  .ph-hero-btn,
  .ph-cta-btn,
  .ph-rail-track {
    transition: none !important;
    animation: none !important;
  }
  .ph-series-media:hover { transform: none; }
  .ph-rail-btn:hover { transform: none; }
}

/* 产品中心展示区：滚入渐现（配合 reveal-v2，对齐解决方案 hub） */
.home-reveal .ph-section-head.home-reveal-item {
  opacity: 0;
  transform: translateY(24px);
}
.home-reveal .ph-series-card--link.home-reveal-item {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.home-reveal .ph-ip-grid.home-reveal-item,
.home-reveal .ph-trio-col.home-reveal-item,
.home-reveal .ph-empty.home-reveal-item,
.home-reveal .ph-cta-inner.home-reveal-item {
  opacity: 0;
  transform: translateY(22px);
}
.home-reveal.is-inview .ph-section-head.home-reveal-item,
.home-reveal.is-inview .ph-series-card--link.home-reveal-item,
.home-reveal.is-inview .ph-ip-grid.home-reveal-item,
.home-reveal.is-inview .ph-trio-col.home-reveal-item,
.home-reveal.is-inview .ph-empty.home-reveal-item,
.home-reveal.is-inview .ph-cta-inner.home-reveal-item {
  opacity: 1;
  transform: none;
}
.home-reveal.is-inview .ph-series-card--link.home-reveal-item {
  /* 入场结束后缩短过渡，避免 hover 仍走 0.6s */
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}
@media (prefers-reduced-motion: reduce) {
  .home-reveal .ph-section-head.home-reveal-item,
  .home-reveal .ph-series-card--link.home-reveal-item,
  .home-reveal .ph-ip-grid.home-reveal-item,
  .home-reveal .ph-trio-col.home-reveal-item,
  .home-reveal .ph-empty.home-reveal-item,
  .home-reveal .ph-cta-inner.home-reveal-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* —— 产品中心主页：六大分类 3×2 网格（上图下文） —— */
.ph-page--hub {
  background: #fff;
}
.ph-section--hub-grid {
  max-width: var(--site-maxw);
  width: 100%;
  margin: 32px auto 48px;
  padding: 0 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
}
.ph-section--hub-grid .ph-section-inner {
  max-width: none;
  padding: 0;
}

.ph-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.ph-hub-card {
  /* 媒体区按卡片宽度算高；16:9 比旧 93:40 更高，仍随宽度自适应 */
  --ph-hub-media-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  max-height: none;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.ph-hub-card:hover {
  border-color: rgba(195, 13, 35, 0.28);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  transform: translateY(-3px);
}
.ph-hub-card:focus-visible {
  outline: 2px solid #c30d23;
  outline-offset: 2px;
}

.ph-hub-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: var(--ph-hub-media-ratio);
  height: auto;
  min-height: 0;
  max-height: none;
  background: #f0f1f3;
  overflow: hidden;
}
.ph-hub-card-media.is-empty {
  background:
    linear-gradient(180deg, #f3f4f6 0%, #e8eaee 100%);
}
.ph-hub-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  box-sizing: border-box;
}

.ph-hub-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 6px;
  padding: 14px 18px 14px;
  background: #fff;
  box-sizing: border-box;
  text-align: center;
  align-items: center;
  overflow: hidden;
}
.ph-hub-card-title { /* type roles via type-v2 */ 
  display: block;
  margin: 0;
  flex: 0 0 auto;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ph-hub-card-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  flex: 0 0 auto;
  /* 与 type-v2 的 --av-fs-card-sub / --av-lh-body 对齐，避免两行字被裁切 */
  min-height: calc(var(--av-fs-card-sub, 14px) * var(--av-lh-body, 1.75) * 2);
  max-height: calc(var(--av-fs-card-sub, 14px) * var(--av-lh-body, 1.75) * 2 + 2px);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  color: #5c6470;
  word-break: break-word;
}

/* —— 分类落地页：扁平产品列表 —— */
.ph-page.ph-page--class-list {
  background: #f3f6fc;
  overflow-x: clip;
  max-width: 100%;
  --ph-class-list-min-h: 0px;
  /* 行高区最小高度：跟上面算出来的卡高走，不再用过大的 floor 把侧栏/主区撑飞 */
  --ph-card-body-h: var(--ps-card-body-h, 52px);
  --ph-two-row-min-h: calc(
    var(--ps-fit-rows, 2) * (var(--ps-media-h, 200px) + var(--ph-card-body-h))
    + (var(--ps-fit-rows, 2) - 1) * var(--ps-card-gap-y, 12px)
  );
  box-sizing: border-box;
}
.ph-page--class-list .ph-cta-strip {
  margin-top: 0;
}
/* 分类列表：去掉 sticky 磨砂与滚入动画，减轻滚动/ hover 重绘 */
.ph-page--class-list .ph-toolbar {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: #fff;
}
.ph-page--class-list .ph-cta-strip.home-reveal .ph-cta-inner.home-reveal-item {
  opacity: 1;
  transform: none;
  transition: none;
}
.ph-class-list {
  padding: 12px 0 12px;
  overflow-x: clip;
  max-width: 100%;
  box-sizing: border-box;
}
@media (min-width: 901px) {
  .ph-page.ph-page--class-list .ph-class-list {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .ph-page.ph-page--class-list .ph-class-list-inner {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  /* 侧栏最小高度跟 --ps-fit-rows（矮/窄屏 2 行，高屏 3 行）；分页单独一行 */
  .ph-page.ph-page--class-list .ph-class-layout {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 24px;
    row-gap: 0;
    align-items: stretch;
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
  }
  .ph-page.ph-page--class-list .ph-series-sidebar {
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    position: relative !important;
    top: auto !important;
    height: auto;
    /* 与产品网格行数一致：2 行屏用两行高，3 行屏用三行高 */
    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)
    );
    max-height: none;
    box-sizing: border-box;
  }
  .ph-page.ph-page--class-list .ph-series-main {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    min-width: 0;
    height: auto;
    flex: 0 0 auto;
  }
  .ph-page.ph-page--class-list .ph-series-pager {
    grid-column: 2;
    grid-row: 2;
    margin-top: 12px;
    margin-bottom: 0;
  }
}
.ph-class-list-inner {
  width: 100%;
  max-width: var(--site-maxw);
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  min-width: 0;
}
/* —— 分类落地页：左侧系列树 + 右侧产品列表 —— */
.ph-class-layout {
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 0;
}
.ph-series-sidebar {
  flex: 0 0 272px;
  width: 272px;
  max-width: 100%;
  min-width: 272px;
  position: sticky;
  top: 88px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  max-height: none;
  background: #f8fafc;
  border: 1px solid #e8ecf1;
  border-radius: 8px;
  box-sizing: border-box;
  overflow: visible;
}
/* 桌面：筛选触发条隐藏；sheet 退化为普通侧栏内容区 */
.ph-series-filter-trigger {
  display: none;
}
.ph-series-sheet {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.ph-series-sheet-mask,
.ph-series-sheet-head {
  display: none;
}
.ph-series-sheet-panel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.ph-series-search {
  flex: 0 0 auto;
  padding: 14px 14px 12px;
  background: #fff;
  border-bottom: 1px solid #e8ecf1;
}
.ph-series-search-label {
  display: block;
  margin: 0 0 8px;
  font-size: var(--av-fs-caption, 13px);
  line-height: 1.4;
  color: #555;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ph-series-search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.ph-series-search-pill:focus-within {
  background: #fff;
  border-color: rgba(195, 13, 35, 0.45);
  box-shadow: 0 0 0 3px rgba(195, 13, 35, 0.08);
}
.ph-series-search-icon {
  flex-shrink: 0;
  color: #94a3b8;
}
.ph-series-search-pill input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: #282323;
  font-family: inherit;
  padding: 0;
}
.ph-series-search-pill input::placeholder {
  color: #9aa3b2;
}
.ph-series-tree {
  --ph-tree-row-h: 40px;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 8px 12px;
  overflow: visible;
}
.ph-series-tree-head {
  padding: 2px 6px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  line-height: 1.4;
}
.ph-tree-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--ph-tree-row-h, 40px);
  height: var(--ph-tree-row-h, 40px);
  padding: 0 10px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 13px;
  line-height: 1.3;
  color: #404040;
  cursor: pointer;
  font-family: inherit;
  box-sizing: border-box;
  border-radius: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.ph-tree-item:hover {
  background: #eef2f7;
  color: #282323;
}
.ph-tree-item.is-active {
  background: rgba(195, 13, 35, 0.06);
  color: #c30d23;
  font-weight: 700;
  box-shadow: none;
}
.ph-tree-item:focus-visible {
  outline: 2px solid rgba(195, 13, 35, 0.45);
  outline-offset: -2px;
}
.ph-tree-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}
.ph-tree-item--root,
.ph-tree-item--leaf {
  background: transparent;
  border: none;
}
.ph-tree-item--root:hover,
.ph-tree-item--leaf:hover {
  border: none;
  background: #eef2f7;
}
.ph-tree-item--root.is-active,
.ph-tree-item--leaf.is-active {
  border: none;
  background: rgba(195, 13, 35, 0.06);
  box-shadow: none;
}
.ph-tree-group {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}
.ph-tree-group.has-active,
.ph-tree-group:has(.ph-tree-item.is-active) {
  border: none;
  box-shadow: none;
}
.ph-tree-row {
  display: flex;
  align-items: stretch;
  min-height: var(--ph-tree-row-h, 40px);
  height: var(--ph-tree-row-h, 40px);
  border-bottom: none;
}
.ph-tree-group.is-expanded .ph-tree-row {
  border-bottom: none;
}
.ph-tree-toggle {
  flex: 0 0 28px;
  width: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-left: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.ph-tree-toggle:hover {
  background: #eef2f7;
  color: #282323;
}
.ph-tree-toggle svg {
  display: block;
  width: 14px;
  height: 14px;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.ph-tree-group.is-expanded .ph-tree-toggle svg {
  transform: rotate(90deg);
}
.ph-tree-group:not(.is-expanded) .ph-tree-children {
  display: none;
}
.ph-tree-item--parent {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 6px 0 10px;
  border-radius: 0;
}
.ph-tree-item--parent.is-active {
  box-shadow: none;
}
.ph-tree-children {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 0 2px 12px;
  background: transparent;
}
.ph-tree-item--child {
  min-height: 30px;
  height: 30px;
  padding: 0 10px;
  font-size: var(--av-fs-caption, 13px);
  color: #555;
  border-radius: 0;
}
.ph-tree-item--child:hover {
  background: #eef2f7;
  color: #282323;
}
.ph-tree-item--child.is-active {
  background: rgba(195, 13, 35, 0.06);
  color: #c30d23;
  font-weight: 700;
  box-shadow: none;
}
.ph-tree-item.is-tree-hidden {
  display: none !important;
}
.ph-tree-group.is-tree-hidden {
  display: none !important;
}
.ph-series-main {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  /* 高度跟内容走，避免 min-height 把网格行撑成 1fr 高塔 */
  min-height: 0;
}

/* —— 分类落地页：主系列筛选栏（已改为左侧树，保留 panel 空态/loading） —— */
.ps-card.is-filter-hidden,
.ps-card[hidden] {
  display: none !important;
}

/* 分类列表：系列筛选空状态 / 列表区 loading（不在筛选栏） */
.ph-series-panel {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.ph-series-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 180px;
  padding: 40px 24px;
  box-sizing: border-box;
  background: rgba(243, 246, 252, 0.72);
  border-radius: 8px;
  pointer-events: none;
}
.ph-series-panel.is-list-loading .ph-series-loading {
  display: flex;
}
.ph-series-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(15, 23, 42, 0.1);
  border-top-color: #c30d23;
  border-radius: 50%;
  animation: phSeriesSpin 0.7s linear infinite;
}
.ph-series-loading-text {
  font-size: 13px;
  line-height: 1.5;
  color: #5c6470;
}
@keyframes phSeriesSpin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .ph-series-loading-spinner { animation: none; opacity: 0.85; }
}
.ph-series-empty {
  display: none;
  padding: 64px 24px;
  text-align: center;
  background: #fff;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  border-radius: 8px;
}
.ph-series-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.04);
  color: #8a93a3;
}
.ph-series-empty-icon svg {
  display: block;
}
.ph-series-empty h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 400;
  color: #282323;
}
.ph-series-empty p {
  margin: 0;
  font-size: 14px;
  color: #5c6470;
}

.ph-page--class-list .ph-empty {
  padding: 64px 24px;
  text-align: center;
  background: #fff;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  border-radius: 8px;
}
@media (max-width: 1100px) {
  .ph-page--class-list {
    min-height: 0;
  }
  .ph-page--class-list .ph-class-list {
    display: block;
  }
  .ph-page--class-list .ph-class-list-inner {
    display: block;
  }
  .ph-class-layout {
    min-height: 0;
    flex: none;
  }
  .ph-class-list-inner {
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
  }
  .ph-class-layout {
    flex-direction: column;
    gap: 20px;
  }
  .ph-series-sidebar {
    position: static;
    width: 100%;
    flex: none;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    align-self: auto;
    overflow: hidden;
  }
  /* 树收入浮动筛选，此处不再给侧栏树单独滚动（避免双滚动条） */
}

/* 分类产品列表 · ≤1100：上下布局时用搜索+浮动系列筛选，不占纵向空间 */
@media (max-width: 1100px) {
  .ph-page--class-list .ph-hero {
    display: none !important;
  }
  .ph-page--class-list {
    --ph-two-row-min-h: 0;
    background: #f3f6fc;
  }
  .ph-page--class-list .ph-toolbar {
    height: auto;
    min-height: 0;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
  }
  .ph-page--class-list .ph-toolbar-inner {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    max-width: none;
    width: 100%;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #eef1f5;
    position: relative;
    z-index: 1;
  }
  .ph-page--class-list .ph-crumb {
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: 0;
    color: #94a3b8;
    gap: 0;
    padding: 10px 16px;
    border-bottom: none;
    width: 100%;
  }
  .ph-page--class-list .ph-crumb a {
    color: #64748b;
  }
  .ph-page--class-list .ph-crumb a:active,
  .ph-page--class-list .ph-crumb a:hover {
    color: #c30d23;
  }
  /* 移动端：首页只留图标，路径更干净 */
  .ph-page--class-list .ph-crumb-home {
    gap: 0;
    color: #64748b;
  }
  .ph-page--class-list .ph-crumb-home-txt {
    display: none;
  }
  .ph-page--class-list .ph-home-icon {
    width: 16px;
    height: 16px;
    opacity: 0.9;
  }
  .ph-page--class-list .ph-crumb .sep {
    width: 14px;
    height: 14px;
    color: #d0d5dd;
  }
  .ph-page--class-list .ph-crumb .sep svg {
    width: 10px;
    height: 10px;
  }
  .ph-page--class-list .ph-crumb a:not(.ph-crumb-home) {
    max-width: min(120px, 28vw);
    font-size: 12px;
  }
  .ph-page--class-list .ph-crumb .cur {
    color: #0f172a;
    font-weight: 600;
    font-size: 12px;
    max-width: min(180px, 42vw);
  }
  .ph-page--class-list .ph-class-list {
    padding: 0 0 28px;
  }
  .ph-page--class-list .ph-class-list-inner {
    padding-left: 16px;
    padding-right: 16px;
    /* 面包屑与产品搜索区间距 12px（移动 / 折叠面板） */
    padding-top: 12px;
  }
  .ph-page--class-list .ph-class-layout {
    gap: 8px;
  }
  .ph-page--class-list .ph-series-sidebar {
    width: 100%;
    min-width: 0;
    min-height: 0 !important;
    max-height: none !important;
    margin-top: 0;
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }
  .ph-page--class-list .ph-series-search {
    padding: 12px 14px 10px;
    background: #fff;
    border-bottom: 1px solid #e8ecf1;
  }
  .ph-page--class-list .ph-series-search-label {
    margin-bottom: 6px;
    font-size: 13px;
  }
  .ph-page--class-list .ph-series-search-pill {
    background: #f4f6f8;
    border-color: #e2e6eb;
    border-radius: 8px;
    height: 40px;
  }
  /* 移动端：搜索 + 筛选条；分类树收入底部弹层；顶距 10px */
  .ph-page--class-list .ph-series-filter-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 10px 0 0;
    padding: 14px 14px 14px;
    min-height: 48px;
    border: 0;
    border-top: 1px solid #eef1f5;
    background: #fff;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .ph-page--class-list .ph-series-filter-trigger-k {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    color: #555;
  }
  .ph-page--class-list .ph-series-filter-trigger-v {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: #282323;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ph-page--class-list .ph-series-filter-trigger-ico {
    flex: 0 0 auto;
    color: #c30d23;
  }
  .ph-page--class-list .ph-series-filter-trigger:active {
    background: #fafbfc;
  }
  .ph-page--class-list .ph-series-sheet {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: block;
    pointer-events: none;
    visibility: hidden;
  }
  .ph-page--class-list .ph-series-sheet.is-open {
    pointer-events: auto;
    visibility: visible;
  }
  .ph-page--class-list .ph-series-sheet-mask {
    display: block;
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.22s ease;
    cursor: pointer;
  }
  .ph-page--class-list .ph-series-sheet.is-open .ph-series-sheet-mask {
    opacity: 1;
  }
  .ph-page--class-list .ph-series-sheet-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    max-height: min(78vh, 640px);
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.18);
    transform: translateY(105%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    padding-top: 6px;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .ph-page--class-list .ph-series-sheet.is-open .ph-series-sheet-panel {
    transform: translateY(0);
  }
  .ph-page--class-list .ph-series-sheet-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #eef1f5;
  }
  .ph-page--class-list .ph-series-sheet-head::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -2px;
    width: 36px;
    height: 4px;
    margin-left: -18px;
    border-radius: 99px;
    background: #d8dee6;
  }
  .ph-page--class-list .ph-series-sheet-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #282323;
    line-height: 1.3;
  }
  .ph-page--class-list .ph-series-sheet-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f4f6f8;
    color: #555;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .ph-page--class-list .ph-series-sheet-close:active {
    background: #e8ecf1;
  }
  .ph-page--class-list .ph-series-tree {
    flex: 1 1 auto;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    padding: 0 0 calc(12px + env(safe-area-inset-bottom, 0));
    gap: 0;
    -webkit-overflow-scrolling: touch;
  }
  .ph-page--class-list .ph-series-tree-head {
    display: none;
  }
  /* 移动端保留二级树：父级可展开/收起，子级缩进 */
  .ph-page--class-list .ph-tree-group {
    margin: 0;
    border: none;
    background: transparent;
  }
  .ph-page--class-list .ph-tree-group > .ph-tree-row {
    display: flex !important;
    align-items: stretch;
    min-height: 48px;
    height: auto;
    border-bottom: 1px solid #eceff3;
  }
  .ph-page--class-list .ph-tree-toggle {
    display: inline-flex !important;
    flex: 0 0 44px;
    width: 44px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: none;
    border-left: 1px solid #eceff3;
    background: transparent;
    color: #64748b;
    -webkit-tap-highlight-color: transparent;
  }
  .ph-page--class-list .ph-tree-toggle:active {
    background: #f1f5f9;
  }
  .ph-page--class-list .ph-tree-group .ph-tree-children {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    border: none;
    background: #fafbfc;
  }
  .ph-page--class-list .ph-tree-group.is-expanded .ph-tree-children {
    display: flex !important;
  }
  .ph-page--class-list .ph-tree-item {
    min-height: 48px;
    height: auto;
    padding: 14px 18px;
    margin: 0;
    border-radius: 0;
    border-bottom: 1px solid #eceff3;
    background: transparent;
    box-shadow: none;
    font-size: 15px;
    font-weight: 400;
    color: #333;
    justify-content: flex-start;
  }
  .ph-page--class-list .ph-tree-item--parent {
    flex: 1 1 auto;
    min-width: 0;
    padding: 14px 12px 14px 18px;
    border-bottom: none;
    font-weight: 600;
    color: #282323;
  }
  .ph-page--class-list .ph-tree-item--child {
    padding-left: 32px;
    font-size: 14px;
    color: #475569;
  }
  .ph-page--class-list .ph-tree-item--root,
  .ph-page--class-list .ph-tree-item--leaf {
    border-bottom: 1px solid #eceff3;
  }
  .ph-page--class-list .ph-tree-item:hover {
    background: #fafbfc;
    color: #333;
  }
  .ph-page--class-list .ph-tree-item--parent:hover {
    color: #282323;
  }
  .ph-page--class-list .ph-tree-item.is-active {
    background: #fff5f5;
    color: #c30d23;
    font-weight: 700;
    box-shadow: none;
  }
  .ph-page--class-list .ph-tree-group.is-expanded .ph-tree-item--child:last-child {
    border-bottom: none;
  }
  .ph-page--class-list .ph-series-main {
    min-height: 0;
  }
  .ph-page--class-list .ph-series-panel {
    min-height: 0;
  }
  body.ph-series-sheet-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
  }
  /* overflow:hidden / fixed 会破坏 sticky，打开浮层时改回普通流，避免面包屑被顶下移 */
  body.ph-series-sheet-open .ph-page--class-list .ph-toolbar {
    position: relative;
    top: auto;
  }
}

@media (max-width: 1100px) and (prefers-reduced-motion: reduce) {
  .ph-page--class-list .ph-series-sheet-mask,
  .ph-page--class-list .ph-series-sheet-panel {
    transition: none !important;
  }
}


@media (max-width: 1100px) {
  .ph-section--hub-grid {
    padding-left: 24px;
    padding-right: 24px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  .ph-hub-grid {
    gap: 16px;
  }
  .ph-hub-card-body {
    padding: 12px 16px 10px;
  }
  .ph-hub-card-title {
    font-size: 16px;
  }
}
@media (max-width: 900px) {
  .ph-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ph-page--class-list .ph-class-list-inner {
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 560px) {
  .ph-section--hub-grid {
    margin: 8px auto 24px;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 0;
    padding-bottom: 20px;
  }
  /* 双列：上图下文 + contain，完整展示封面不裁不变形 */
  .ph-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    grid-auto-rows: auto;
  }
  .ph-hub-card {
    position: static;
    aspect-ratio: auto;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  }
  .ph-hub-card-media {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    flex: 0 0 auto;
    background: #f3f5f8;
  }
  .ph-hub-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 6px;
    box-sizing: border-box;
  }
  .ph-hub-card-media::after {
    display: none;
  }
  .ph-hub-card-body {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: auto;
    flex: 0 0 auto;
    gap: 0;
    padding: 10px 10px 12px;
    background: #fff;
    min-height: 0;
  }
  .ph-hub-card-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: #282323 !important;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
  .ph-hub-card-desc {
    display: none !important;
  }
  .ph-hub-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  }
  .ph-hub-card:active {
    transform: scale(0.98);
  }
  .ph-page--hub .ph-hub-panel.hub-panel {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  .ph-page--hub .ph-toolbar.ph-hub-bar {
    position: static;
    height: auto;
    min-height: 0;
    background: #fff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  }
  .ph-page--hub .ph-toolbar-inner {
    height: auto;
    min-height: 0;
    padding: 0;
  }
  .ph-page--hub .ph-crumb {
    font-size: 12px;
    line-height: 1.35;
    color: #94a3b8;
    padding: 10px 16px;
  }
  .ph-page--hub .ph-crumb a { color: #64748b; }
  .ph-page--hub .ph-crumb .cur {
    color: #0f172a;
    font-weight: 600;
  }
  .ph-page--hub .ph-crumb .sep {
    width: 16px;
    color: #cbd5e1;
  }
  .ph-page--hub .ph-crumb .sep svg {
    width: 10px;
    height: 10px;
  }
  .ph-page--hub .ph-crumb-home-txt {
    display: none;
  }
  .ph-page--hub .ph-crumb-home {
    gap: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ph-hub-card,
  .ph-hub-card:hover {
    transition: none;
    transform: none;
  }
}

/* —— 产品中心主页：桌面分屏滚动（hero 自由 → 面包屑+卡片一屏 → CTA 自由） —— */
@media (min-width: 1024px) {
  body.ph-page--hub.has-hub-fullpage {
    --hub-nav-h: 64px;
    --hub-panel-h: calc(100svh - var(--hub-nav-h));
    scroll-behavior: auto;
  }
  html.has-hub-fullpage {
    scroll-behavior: auto;
  }
  /* Banner 参与吸附，高度保持原稿 */
  body.ph-page--hub.has-hub-fullpage .ph-hero.hub-panel--auto,
  body.ph-page--class-list.has-hub-fullpage .ph-hero.hub-panel--auto {
    overflow: hidden;
  }
  body.ph-page--hub.has-hub-fullpage .ph-hub-panel.hub-panel {
    box-sizing: border-box;
    overflow: hidden;
    height: var(--hub-panel-h);
    min-height: var(--hub-panel-h);
    max-height: var(--hub-panel-h);
    display: flex;
    flex-direction: column;
    background: #fff;
  }
  /* 矮屏笔记本：内容略超视口时由 JS 加 class，面板内可滚，外层仍分屏吸附 */
  body.ph-page--hub.has-hub-fullpage .ph-hub-panel.hub-panel.hub-panel--scroll {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  /* 超长内容：随高度增高，只用页面滚动条 */
  body.ph-page--hub.has-hub-fullpage .hub-panel.hub-panel--grow,
  body.ph-page--class-list.has-hub-fullpage .hub-panel.hub-panel--grow {
    height: auto !important;
    min-height: var(--hub-panel-h);
    max-height: none !important;
    overflow: visible !important;
  }
  body.ph-page--hub.has-hub-fullpage .hub-panel.hub-panel--measuring,
  body.ph-page--class-list.has-hub-fullpage .hub-panel.hub-panel--measuring {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
  body.ph-page--hub.has-hub-fullpage .ph-hub-panel .ph-toolbar {
    position: relative;
    top: auto;
    flex: 0 0 auto;
  }
  body.ph-page--hub.has-hub-fullpage .ph-section--hub-grid {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0 auto;
    padding: 32px 0 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    max-width: var(--site-maxw);
    box-sizing: border-box;
  }
  body.ph-page--hub.has-hub-fullpage .ph-section--hub-grid .ph-section-inner {
    flex: 0 0 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  body.ph-page--hub.has-hub-fullpage .ph-cta-strip,
  body.ph-page--hub.has-hub-fullpage .site-footer {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  /* —— 分类列表页：Banner → 列表吸附；卡片高度由 --ps-media-h / --ps-fit-rows 封顶 —— */
  body.ph-page--class-list.has-hub-fullpage {
    --hub-nav-h: 64px;
    --hub-panel-h: calc(100svh - var(--hub-nav-h));
    scroll-behavior: auto;
  }
  body.ph-page--class-list.has-hub-fullpage .ph-class-panel.hub-panel {
    box-sizing: border-box;
    overflow: hidden;
    height: var(--hub-panel-h);
    min-height: var(--hub-panel-h);
    max-height: var(--hub-panel-h);
    display: flex;
    flex-direction: column;
    background: #f3f6fc;
  }
  body.ph-page--class-list.has-hub-fullpage .ph-class-panel.hub-panel.hub-panel--scroll {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  body.ph-page--class-list.has-hub-fullpage .ph-class-panel.hub-panel.hub-panel--fit {
    min-height: 0;
    height: auto;
  }
  body.ph-page--class-list.has-hub-fullpage .ph-class-panel.hub-panel.hub-panel--grow {
    min-height: var(--hub-panel-h);
    max-height: none;
    height: auto;
    overflow: visible;
  }
  body.ph-page--class-list.has-hub-fullpage .ph-class-panel .ph-toolbar {
    position: relative;
    top: auto;
    flex: 0 0 auto;
  }
  body.ph-page--class-list.has-hub-fullpage .ph-class-list {
    flex: 1 1 auto;
    min-height: 0;
    padding: 8px 0 12px;
    display: flex;
    flex-direction: column;
  }
  body.ph-page--class-list.has-hub-fullpage .ph-class-list-inner {
    flex: 1 1 auto;
    min-height: 0;
  }
  body.ph-page--class-list.has-hub-fullpage .ph-class-layout {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
  }
  body.ph-page--class-list.has-hub-fullpage .ps-grid {
    align-content: start;
    align-items: stretch;
    grid-auto-rows: auto;
    flex: 0 0 auto;
  }
  body.ph-page--class-list.has-hub-fullpage .ph-series-main,
  body.ph-page--class-list.has-hub-fullpage .ph-series-panel {
    flex: 0 0 auto;
    min-height: 0;
    height: auto;
    display: flex;
    flex-direction: column;
  }
  body.ph-page--class-list.has-hub-fullpage .ph-series-pager {
    margin-top: 12px;
    margin-bottom: 0;
    padding: 0;
  }
  body.ph-page--class-list.has-hub-fullpage .ps-card {
    height: auto !important;
    min-height: 0 !important;
    flex-grow: 0 !important;
  }
  body.ph-page--class-list.has-hub-fullpage .ps-card-link {
    height: auto !important;
    min-height: 0 !important;
    flex-grow: 0 !important;
  }
  body.ph-page--class-list.has-hub-fullpage .ps-card-media {
    aspect-ratio: auto !important;
    height: var(--ps-media-h) !important;
    max-height: var(--ps-media-h) !important;
  }
  body.ph-page--class-list.has-hub-fullpage .ph-cta-strip,
  body.ph-page--class-list.has-hub-fullpage .site-footer {
    height: auto;
    min-height: 0;
    max-height: none;
  }
}

/* 笔记本内容视口偏矮（≤1000）：收紧间距 */
@media (min-width: 1024px) and (max-width: 1440px) and (max-height: 900px) {
  body.ph-page--hub.has-hub-fullpage .ph-hero-inner {
    padding-top: 72px;
  }
  body.ph-page--hub.has-hub-fullpage .ph-section--hub-grid {
    padding: 20px 0 12px;
  }
  body.ph-page--hub.has-hub-fullpage .ph-hub-grid {
    gap: 12px;
  }
  body.ph-page--hub.has-hub-fullpage .ph-hub-card {
    --ph-hub-media-ratio: 2.2 / 1;
  }
  body.ph-page--hub.has-hub-fullpage .ph-hub-card-body {
    padding: 8px 12px;
    gap: 2px;
  }
  body.ph-page--hub.has-hub-fullpage .ph-hub-card-title {
    font-size: 15px;
  }
  body.ph-page--hub.has-hub-fullpage .ph-hub-card-desc {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  body.ph-page--class-list.has-hub-fullpage {
    --ps-card-gap-y: 8px;
    --ps-card-gap-x: 10px;
    --ps-list-pad-y: 16px;
    --ps-card-body-h: 76px;
    --ps-pager-reserve: 40px;
    --ps-fit-slack: 8px;
  }
  body.ph-page--class-list.has-hub-fullpage .ph-class-list {
    padding: 4px 0 8px;
  }
}

@media (min-width: 1024px) and (max-width: 1440px) and (max-height: 700px) {
  body.ph-page--hub.has-hub-fullpage .ph-hero-inner {
    padding-top: 64px;
  }
  body.ph-page--hub.has-hub-fullpage .ph-section--hub-grid {
    padding: 14px 0 8px;
  }
  body.ph-page--hub.has-hub-fullpage .ph-hub-grid {
    gap: 8px;
  }
  body.ph-page--hub.has-hub-fullpage .ph-hub-card {
    --ph-hub-media-ratio: 2.4 / 1;
  }
  body.ph-page--hub.has-hub-fullpage .ph-hub-card-desc {
    display: none;
  }
  body.ph-page--class-list.has-hub-fullpage {
    --ps-card-gap-y: 6px;
    --ps-card-gap-x: 8px;
    --ps-list-pad-y: 10px;
    --ps-card-body-h: 64px;
    --ps-pager-reserve: 32px;
  }
}

@media (min-width: 1024px) and (max-width: 1440px) and (max-height: 580px) {
  body.ph-page--hub.has-hub-fullpage .ph-hero.hub-panel--auto {
    min-height: 0;
  }
  body.ph-page--hub.has-hub-fullpage .ph-hero-inner {
    padding-top: 56px;
  }
  body.ph-page--hub.has-hub-fullpage .ph-section--hub-grid {
    padding: var(--site-section-pad-y, 12px) 0 8px;
  }
  body.ph-page--hub.has-hub-fullpage .ph-hub-grid {
    gap: 8px;
  }
  body.ph-page--hub.has-hub-fullpage .ph-hub-card {
    --ph-hub-media-ratio: 2.6 / 1;
  }
  body.ph-page--hub.has-hub-fullpage .ph-hub-card-body {
    padding: 6px 10px;
    gap: 0;
  }
  body.ph-page--hub.has-hub-fullpage .ph-hub-card-title {
    font-size: 14px;
  }
  body.ph-page--hub.has-hub-fullpage .ph-hub-card-desc {
    display: none;
  }
  body.ph-page--hub.has-hub-fullpage .ph-toolbar {
    padding-top: 4px;
    padding-bottom: 4px;
  }
  body.ph-page--class-list.has-hub-fullpage {
    --ps-card-gap-y: 4px;
    --ps-card-gap-x: 6px;
    --ps-list-pad-y: 6px;
    --ps-card-body-h: 56px;
    --ps-pager-reserve: 28px;
  }
  body.ph-page--class-list.has-hub-fullpage .ph-class-list {
    padding: 2px 0 4px;
  }
  body.ph-page--hub.has-hub-fullpage .hub-panel.hub-panel--scroll,
  body.ph-page--class-list.has-hub-fullpage .hub-panel.hub-panel--scroll {
    overflow-y: hidden;
  }
}

/* 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) {

  .ph-hero-inner, .ph-toolbar-inner, .ph-section, .ph-cta-inner { padding-left: 24px; padding-right: 24px; }
  .ph-hardware-stage {
    padding-left: 24px;
    padding-right: 24px;
  }
  .ph-hardware-stage__foot {
    width: 160%;
    height: clamp(280px, 70vw, 420px);
    bottom: -2%;
  }
  .ph-hardware-stage .ph-section--trio {
    padding-bottom: clamp(56px, 16vw, 88px);
  }
  .ph-section--ai,
  .ph-section--ip,
  .ph-section--fiber,
  .ph-section--trio {
    padding-left: 0;
    padding-right: 0;
  }
  .ph-section--ai {
    height: auto;
    min-height: 0;
  }
  .ph-section--cards .ph-section-inner { padding-left: 16px; padding-right: 16px; }
  .ph-section--cards:not(.ph-section--ai) { padding-left: 24px; padding-right: 24px; }
  .ph-section--cards .ph-rail-track {
    width: max-content;
    min-width: 100%;
    max-width: none;
    justify-content: flex-start;
    gap: 20px;
  }
  .ph-section--cards .ph-rail-viewport {
    overflow-x: auto;
    overflow-y: visible;
  }
  .ph-section--cards .ph-rail-btn { display: none; }
  .ph-section--ip .ph-ip-grid,
  .ph-section--fiber .ph-ip-grid {
    grid-template-columns: 1fr;
  }
  .ph-trio-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .ph-trio-col {
    flex: none;
    width: 100%;
  }
  .ph-trio-card {
    aspect-ratio: 279 / 247;
    min-height: 200px;
  }
  .ph-rail.ph-rail--trio {
    padding-left: 0;
    padding-right: 0;
  }
  .ph-rail.ph-rail--trio .ph-rail-btn { display: none; }
  .ph-section--trio-carousel .ph-trio-grid,
  .ph-rail.ph-rail--trio .ph-trio-grid {
    width: max-content;
    flex-direction: row;
  }
  .ph-section--trio-carousel .ph-trio-col,
  .ph-rail.ph-rail--trio .ph-trio-col {
    --trio-col-w: min(280px, 78vw);
    width: var(--trio-col-w);
    flex: 0 0 var(--trio-col-w);
  }
  .ph-rail.ph-rail--trio .ph-rail-viewport {
    overflow-x: auto;
    overflow-y: visible;
  }
  .ph-ip-card--feature,
  .ph-ip-side {
    width: 100%;
    min-height: 0;
  }
  .ph-ip-card--feature {
    aspect-ratio: auto;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .ph-ip-card--feature::before {
    padding-bottom: calc(307 / 570 * 100%);
    min-height: 220px;
    box-sizing: content-box;
  }
  .ph-ip-card--feature > .ph-ip-card-body {
    overflow: visible;
    max-height: none;
    height: auto;
    min-height: 100%;
  }
  .ph-ip-card.ph-ip-card--feature.has-bg {
    background-size: cover;
    background-position: center right;
  }
  .ph-ip-side {
    gap: 12px;
    overflow: visible;
    max-height: none;
    height: auto;
    min-height: 0;
  }
  .ph-ip-side[data-count="1"] .ph-ip-card--sm,
  .ph-ip-side[data-count="2"] .ph-ip-card--sm,
  .ph-ip-side[data-count="3"] .ph-ip-card--sm {
    flex: none;
    height: auto;
    min-height: min-content;
    max-height: none;
    aspect-ratio: auto;
  }
  .ph-ip-card-body {
    max-width: 70%;
  }
  .ph-toolbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    height: auto;
    min-height: 60px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .ph-toolbar {
    height: auto;
    min-height: 60px;
  }
  .ph-pills { max-width: 100%; }
  .ph-pill { padding: 8px 14px; font-size: var(--av-fs-caption, 13px); }
  .ph-rail {
    padding-left: 48px;
    padding-right: 48px;
  }
  .ph-cta-inner { flex-direction: column; text-align: center; height: auto; min-height: 143px; padding-top: 28px; padding-bottom: 28px; }
  .ph-cta-inner h2 { font-size: 20px; }


  .ph-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ph-page--class-list .ph-class-list-inner {
    padding-left: 12px;
    padding-right: 12px;
  }
}
