/* ==========================================================================
   SRACING · 产品中心 /products/ · sr-products.css
   依据：《产品中心页 · 视觉规格书 v4》（2026-10-23）
   依赖：sr-tokens.css（:root 令牌）
   作用域：.pd —— 只影响本页，不碰页头/页脚 part

   骨架（§4「列表页最终只留 4 段」）：
     首屏全幅轮播 58:42 → 线段导览 4 条 → 产品族 3×3 → 配件与软件 6 项
     四张全量表下沉 <details>（视觉不在列表页，内容仍在 HTML，保 GEO 抓取）
   ========================================================================== */

/* ---------------------------------------------------------------- 0. 本页字重 / 字距归一
   主题基类有 h1~h6{letter-spacing:-.02em} 与 600/700/750 字重，必须在本页内清掉。
   body 上没有 .sr-app（那是 SPA 专属），所以这里用 .pd 兜住整页正文。 */
.pd,
.pd * { letter-spacing: 0; }
.pd :is(h1, h2, h3, h4, h5, h6, b, strong, th, caption, dt, summary, a) { font-weight: var(--w-head); }
.pd :is(p, li, td, dd, span:not([class])) { font-weight: var(--w-body); }
.pd, .pd h1, .pd h2, .pd h3, .pd p, .pd li, .pd td { font-family: var(--font); }
/* 数字等宽：价格与规格值不跳列 */
.pd :is(.pd-price, .pd-card__spec, .pd-acc__meta, .pd-hero__n) { font-variant-numeric: tabular-nums; }

/* 纯拉丁大写标签唯一允许的字距 */
.pd [data-lat],
.pd .pd-eye { letter-spacing: .06em; }

/* 本页只此一条左缘 */
.pd { --edge: var(--pad); }

/* ---------------------------------------------------------------- 1. 首屏全幅轮播（§3.2） */
.pd-hero {
  position: relative;
  height: clamp(420px, 46vw, 620px);
  overflow: hidden;
  background: var(--bg);
  /* 全幅：抵消 main 的块间距与主题的 content 宽度限制 */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-radius: 0;
}
.pd-hero__track {
  display: flex;
  gap: 0;                       /* 卡片之间 gap 0，无缝相接 */
  height: 100%;
  will-change: transform;
  transition: transform var(--t-slide) var(--ease);
}
.pd-hero__slide {
  position: relative;
  flex: 0 0 58%;                /* 当前 58% + 下一张露 42% */
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}
.pd-hero__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 46%;
  display: block;
}
/* 功能性渐变：只为文字可读，不是装饰 */
.pd-hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 12, 14, 0) 38%, rgba(11, 12, 14, .92) 100%);
}
.pd-hero__copy {
  position: absolute;
  left: var(--pad);
  bottom: 48px;
  max-width: 520px;
  z-index: 2;
  transition: opacity 320ms var(--ease);
}
/* 视口里第二张会露出 42%，它的标题/按钮若一起露出来会读成「两个 H1 并排」。
   规则：只有当前张写字，邻卡只留图。 */
.pd-hero__slide:not(.is-on) .pd-hero__copy,
.pd-hero__slide:not(.is-on) .pd-hot { opacity: 0; pointer-events: none; }
/* 邻卡只露 42%：设备图改成实心渲染后，右缘会露出一截被裁断的大数字，
   读起来像错位。把非当前张的图形压暗，让它退成背景，不再与主图争视线。 */
.pd-hero__slide:not(.is-on) .pd-hero__art {
  opacity: .34;
  transition: opacity var(--t-slide) var(--ease);
}
.pd-hero__label {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 16px;
  font-weight: var(--w-head);
  letter-spacing: .06em;
  color: var(--l3);
}
.pd-hero__name {
  margin: 0 0 12px;
  font-size: 40px;              /* T0：全页仅此 2 处（每张 1 处） */
  line-height: 46px;
  font-weight: var(--w-head);
  color: var(--l1);
}
.pd-hero__lead {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 28px;
  font-weight: var(--w-body);
  color: var(--l2);
  max-width: 520px;
}
.pd-hero__btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 24px;
  border-radius: var(--r-btn);
  background: var(--accent);
  /* 橙底白字实测 3.12:1，15px 不算 WCAG 的「大字」，必须 4.5 —— 不达标。
     改深色字（约 7:1）：品牌橙保持原样只做填充，符合「accent 只做填充」的规矩；
     这也正是 M3 filled button 的做法（container 亮、label 暗）。 */
  color: #150800;
  font-size: 15px;
  line-height: 24px;
  font-weight: var(--w-head);
  text-decoration: none;
  transition: background 220ms var(--ease), transform 220ms var(--ease);
}
.pd-hero__btn:hover { background: #ff7a42; transform: translateY(-1px); }

/* 热区气泡（§3.3 hover 动效） */
.pd-hot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 3;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: transparent;
  opacity: 0;
  transform: scale(.9);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
.pd-hot::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.pd-hero__slide:hover .pd-hot,
.pd-card:hover .pd-hot { opacity: 1; transform: scale(1); }
.pd-hot__tip {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 4px);
  display: block;
  padding: 8px 10px;
  border: 1px solid var(--f2);
  /* 12 而不是 10：M3 的形状阶梯是 4/8/12/16/28/full，10 落在阶梯外，
     审计会一直把它列为"不在阶梯上"。差别肉眼不可见，但口径干净。 */
  border-radius: 12px;
  background: rgba(11, 12, 14, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
}
.pd-hot:hover .pd-hot__tip,
.pd-hot:focus-visible .pd-hot__tip { opacity: 1; transform: translate(-50%, 0); }
.pd-hot__tip b {
  display: block;
  font-size: 12px;
  line-height: 16px;
  font-weight: var(--w-head);
  color: var(--l3);
}
.pd-hot__tip em {
  display: block;
  font-style: normal;
  font-size: 17px;
  line-height: 28px;
  font-weight: var(--w-head);
  color: var(--l1);
}

/* 分页器 + 箭头 */
.pd-hero__dots {
  position: absolute;
  left: var(--pad);
  bottom: 20px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pd-hero__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .26);
  cursor: pointer;
  transition: width 240ms var(--ease), background 240ms var(--ease);
}
.pd-hero__dot.is-on { width: 24px; background: var(--accent); }
.pd-hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--f2);
  border-radius: 50%;
  background: rgba(11, 12, 14, .5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--l2);
  cursor: pointer;
  transition: border-color 220ms var(--ease), color 220ms var(--ease);
}
.pd-hero__arrow:hover { border-color: var(--f3); color: var(--l1); }
.pd-hero__arrow--prev { left: 24px; }
.pd-hero__arrow--next { right: 24px; }

/* ---------------------------------------------------------------- 2. 线段导览（§3.4，本页最好认的一处） */
.pd-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  padding: 44px var(--edge) 44px;
  border-bottom: 1px solid var(--f1);
}
.pd-rail__i {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--l3);
  font-size: 14px;
  line-height: 23px;
  font-weight: var(--w-body);
  transition: color 200ms var(--ease);
}
.pd-rail__ln {
  display: block;
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, .28);
  transition: width 280ms var(--ease), background-color 280ms var(--ease);
}
.pd-rail__i:hover,
.pd-rail__i.is-on { color: var(--red); font-weight: var(--w-head); }
.pd-rail__i:hover .pd-rail__ln,
.pd-rail__i.is-on .pd-rail__ln { width: 32px; background: rgba(255, 255, 255, .55); }

/* ---------------------------------------------------------------- 3. 产品族（§3.3） */
.pd-fam {
  padding: 88px var(--edge) 0;
}
.pd-fam:first-of-type { padding-top: 64px; }
.pd-fam__head { display: block; margin: 0 0 24px; }
.pd-fam__label {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 16px;
  font-weight: var(--w-head);
  color: var(--l3);
}
.pd-fam__name {
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 38px;
  font-weight: var(--w-head);
  color: var(--l1);
}
.pd-fam__meta {
  display: flex;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  margin: 0;
}
.pd-fam__sub {
  margin: 0;
  font-size: 17px;
  line-height: 28px;
  font-weight: var(--w-body);
  color: var(--l2);
}
.pd-fam__go {
  font-size: 14px;
  line-height: 23px;
  font-weight: var(--w-head);
  color: var(--l1);
  text-decoration: none;
  transition: color 200ms var(--ease);
}
.pd-fam__go:hover { color: var(--red); }

.pd-fam__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pd-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--f1);
  border-radius: var(--r-card);
  background: var(--s1);
  overflow: hidden;
  transition: border-color 320ms var(--ease);
}
.pd-card:hover { border-color: var(--f3); }
.pd-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--s2);
  overflow: hidden;
}
.pd-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms var(--ease);
}
.pd-card:hover .pd-card__media img { transform: scale(1.04); }
.pd-card__body {
  padding: 24px;
}
.pd-card__name {
  margin: 0 0 10px;
  font-size: 17px;               /* T4t */
  line-height: 24px;
  font-weight: var(--w-head);
  color: var(--l1);
}
.pd-card__name a { color: inherit; text-decoration: none; }
/* 参数只一行，超过即截断，不折行（§3.3） */
.pd-card__spec {
  margin: 0;
  font-size: 14px;
  line-height: 23px;
  font-weight: var(--w-body);
  color: var(--l3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pd-card__price { color: var(--red); font-weight: var(--w-head); }

/* ---------------------------------------------------------------- 4. 配件与软件（§3.5） */
.pd-acc {
  padding: 88px var(--edge) 0;
}
.pd-acc__title {
  margin: 0;
  font-size: 32px;
  line-height: 38px;
  font-weight: var(--w-head);
  color: var(--l1);
}
.pd-acc__rule {
  width: 48px;
  height: 2px;
  margin: 16px 0 24px;
  background: var(--accent);
}
.pd-acc__sub {
  margin: 0 auto 48px 0;          /* 左对齐，禁止 margin:0 auto 居中 */
  max-width: 760px;
  font-size: 17px;
  line-height: 28px;
  font-weight: var(--w-body);
  color: var(--l2);
}
.pd-acc__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pd-acc__i { display: block; text-decoration: none; }
.pd-acc__fig {
  aspect-ratio: 16 / 10;
  border-radius: var(--r-card);
  background: var(--s2);
  overflow: hidden;
}
.pd-acc__fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms var(--ease);
}
.pd-acc__i:hover .pd-acc__fig img { transform: scale(1.03); }
.pd-acc__name {
  margin: 16px 0 4px;
  font-size: 15px;
  line-height: 24px;
  font-weight: var(--w-body);
  color: var(--l1);
}
.pd-acc__meta {
  margin: 0;
  font-size: 14px;
  line-height: 23px;
  font-weight: var(--w-body);
  color: var(--l3);
}

/* ---------------------------------------------------------------- 5. 折叠区（全量表 / 方案一览）
   规格要求列表页不出现全量表格；但直接删会把 700/500/nano 的规格与 7 条方案内链一起删掉
   （GEO 上是纯损失）。折中：默认收起，DOM 里保留，爬虫照常抓到。 */
.pd-more {
  padding: 88px var(--edge) 0;
}
.pd-more summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--f1);
  border-bottom: 1px solid var(--f1);
  cursor: pointer;
  list-style: none;
  font-size: 22px;
  line-height: 28px;
  font-weight: var(--w-head);
  color: var(--l1);
}
.pd-more summary::-webkit-details-marker { display: none; }
.pd-more summary::after {
  content: "＋";
  font-size: 16px;
  line-height: 1;
  color: var(--l4);
  transition: transform 250ms var(--ease), color 250ms var(--ease);
}
.pd-more details[open] > summary::after { transform: rotate(45deg); color: var(--l1); }
.pd-more details + details { margin-top: 20px; }
.pd-more__body { padding: 24px 0 0; }
.pd-more__note {
  margin: 24px 0 0;
  max-width: var(--txt);
  font-size: 14px;
  line-height: 23px;
  color: var(--l3);
}

/* 折叠区里的表格：唯一允许出现的表格样式 */
.pd-tbl {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 23px;
}
.pd-tbl caption {
  text-align: left;
  padding: 0 0 12px;
  font-size: 14px;
  line-height: 23px;
  color: var(--l3);
}
.pd-tbl th,
.pd-tbl td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--f1);
  text-align: left;
  vertical-align: top;
  font-weight: var(--w-body);
  color: var(--l2);
}
.pd-tbl thead th {
  font-weight: var(--w-head);
  color: var(--l1);
  border-bottom-color: var(--f2);
  white-space: nowrap;
}
.pd-tbl tbody th { color: var(--l1); white-space: nowrap; }
.pd-tbl a { color: var(--l1); text-decoration: none; }
.pd-tbl a:hover { color: var(--red); }
.pd-tbl code { font-family: var(--mono); font-size: 13px; color: var(--l3); }
.pd-price { color: var(--red); font-weight: var(--w-head); white-space: nowrap; }

/* ---------------------------------------------------------------- 6. 响应式 */
@media (max-width: 1100px) {
  .pd-fam__grid { grid-template-columns: repeat(2, 1fr); }
  .pd-acc__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .pd-hero { height: 460px; }
  /* 竖屏下 58:42 的宽构图被裁成窄条，圆表正压在文案上：
     图形上移压暗，底部用 --bg 实色兜住（与首页首屏同一处理） */
  .pd-hero__art { transform: translateY(-14%); opacity: .62; }
  .pd-hero__scrim {
    background:
      linear-gradient(to top, var(--bg) 22%, rgba(11, 12, 14, .82) 48%, rgba(11, 12, 14, .10) 84%);
  }
  .pd-hero__slide { flex: 0 0 88%; }
  .pd-hero__name { font-size: 32px; line-height: 38px; }
  .pd-hero__copy { bottom: 40px; right: var(--pad); }
  .pd-hero__arrow { display: none; }
  .pd-fam, .pd-acc, .pd-more { padding-top: 64px; }
  .pd-fam__name, .pd-acc__title { font-size: 26px; line-height: 32px; }
}
@media (max-width: 720px) {
  .pd-fam__grid,
  .pd-acc__grid { grid-template-columns: 1fr; }
  .pd-hero__slide { flex: 0 0 100%; }
  .pd-rail { gap: 8px 20px; padding: 32px var(--edge); }
}

/* 减少动效 */
@media (prefers-reduced-motion: reduce) {
  .pd-hero__track,
  .pd-card__media img,
  .pd-acc__fig img,
  .pd-hot,
  .pd-hot__tip,
  .pd-rail__ln { transition: none !important; }
}

/* ---------------------------------------------------------------- 7. 页头 / 页脚容器满宽
   共享 part 的 .sr-header__inner / .sr-footer__inner 带 max-width，产品中心正文是全幅的，
   不放开就会出现「正文 64px、logo 322px」两条左缘。只在这页放开（body.pd-page）。 */
body.pd-page .sr-header .wp-block-group.sr-header__inner,
body.pd-page .sr-footer .wp-block-group.sr-footer__inner {
  max-width: none;
}

/* ---------------------------------------------------------------- 8. 页头一行三块 / 页脚贴左
   §3.1：logo → 导航 → 右侧控件，导航紧跟 logo（44px），控件靠右。
   §3.6：站点名在左上、四列与法务行贴同一条左缘，巨型水印缩回 T3。 */
/* 只在桌面生效：≤860 页头本来就换行（brand / nav / aux 三行），
   44px 间距会把三行撑开，控件正好压到首屏图上。 */
@media (min-width: 861px) {
  body.pd-page .sr-header .wp-block-group.sr-header__inner { gap: 44px; }
  body.pd-page .sr-header__aux { margin-left: auto; }
}
body.pd-page .sr-footer :is(.sr-footer__mark, .sr-footer__cols, .sr-footer__bottom) {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
body.pd-page .sr-footer__mark {
  font-size: 22px;
  line-height: 28px;
  font-weight: 450;
  letter-spacing: 0;
}
body.pd-page .sr-footer__mark span {
  font-size: 12px;
  letter-spacing: 0;
  color: var(--l3);
}

/* 页脚排版归一：站点名从「背景色水印」改回可读文字（§3.6 站点名 T3），
   列标题去橙、链接 hover 走 --red，字号收进 8 档。 */
body.pd-page .sr-footer__mark { color: var(--l1); margin-bottom: 28px; }
body.pd-page .sr-footer__mark span { color: var(--l3); margin-left: 12px; }
body.pd-page .sr-footer__col-title {
  font-size: 12px;
  line-height: 16px;
  font-weight: 450;
  letter-spacing: 0;
  color: var(--l3);
  margin-bottom: 16px;
}
body.pd-page .sr-footer__list a {
  font-size: 15px;
  line-height: 24px;
  font-weight: 330;
  color: var(--l2);
}
body.pd-page .sr-footer__list a:hover { color: var(--red); padding-left: 0; }
body.pd-page .sr-footer__cols { border-color: var(--f1); }
body.pd-page .sr-footer__bottom { color: var(--l3); font-size: 14px; line-height: 23px; }
