/* =========================================================================
   Opteeq 产品中心 · 前台样式
   所有规则都限定在 .oqp 内，不影响主题其它页面
   ========================================================================= */

.oqp {
  --bg: #FFFFFF;
  --surface-2: #F6F8F8;
  --ink: #0F1416;
  --ink-2: #333B3D;
  --muted: #697274;
  --faint: #98A1A3;
  --line: #E7EAEB;
  --line-soft: #F0F2F2;
  --line-strong: #D3D9DA;
  --brand: #0095A9;
  --brand-deep: #00798A;
  --brand-dark: #006B7A;
  --brand-tint: #EAF6F8;
  --ok: #00A06B;
  --ph-a: #F2F4F4;
  --ph-b: #E4E8E8;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  /* 中英文统一用同一字族：原来的等宽字体只保留变量名，避免中英混排不一致 */
  --mono: var(--sans);
  --oqp-max: 1240px;
  --oqp-pad: clamp(16px, 4vw, 40px);

  max-width: var(--oqp-max);
  margin: 0 auto;
  padding: 0 var(--oqp-pad) clamp(60px, 8vw, 100px);
  /* 顶部让开站点头部：JS 会写入实测像素值，这里给无 JS 时的兜底 */
  padding-top: var(--oqp-top-gap, 44px);
  /* flow-root：避免首个子元素的 margin 折叠到主题容器上，顶部间距才生效 */
  display: flow-root;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* 浮层（选型栏 / 对比弹窗 / 吸底条）在 .oqp 之外，
   用 display:contents 的壳子承接变量与 .oqp .oqp-btn 选择器，且不产生布局盒子 */
.oqp-layer { display: contents; }

/* 主题固定头部遮挡时的高度，由 front.js 写入 */
/* 顶部起始位置由 front.js 写入：= 站点头部高度 + 40px 呼吸位（避免 calc(var()) 在旧内核上失效） */
:root { --oqp-sticky-top: 0px; --oqp-header-h: 0px; --oqp-top-gap: 44px; }

.oqp *,
.oqp *::before,
.oqp *::after { box-sizing: border-box; }

.oqp p { margin: 0 0 1em; }
.oqp a { color: inherit; text-decoration: none; }
.oqp h1, .oqp h2, .oqp h3, .oqp h4 {
  margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.25;
  color: var(--ink);
}
.oqp ul, .oqp ol { margin: 0; padding: 0; list-style: none; }
.oqp img { max-width: 100%; height: auto; display: block; }

/* ---------- 通用 ---------- */
.oqp .oqp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  border: 1px solid var(--line-strong); border-radius: 2px;
  background: #fff; color: var(--ink);
  font-family: var(--sans); font-size: 15px; font-weight: 500; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: background .22s, color .22s, border-color .22s, transform .22s;
}
.oqp .oqp-btn:hover { border-color: var(--ink); }
.oqp .oqp-btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.oqp .oqp-btn-brand:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.oqp .oqp-btn-white { background: #fff; border-color: #fff; color: var(--brand-dark); }
.oqp .oqp-btn-ghost { background: transparent; border-color: rgba(255,255,255,.42); color: #fff; }
.oqp .oqp-btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.oqp .oqp-idx {
  font-family: var(--mono); font-size: 11px; letter-spacing: .07em;
  color: var(--faint);
}

/* ---------- 横幅占位 ---------- */
.oqp-banner-ph {
  position: relative; aspect-ratio: 16 / 5; border-radius: 2px; overflow: hidden;
  background-color: var(--ph-a);
  background-image: repeating-linear-gradient(45deg, var(--ph-b) 0 1px, transparent 1px 9px);
  display: grid; place-items: center; gap: 10px;
}
.oqp-banner-tag {
  position: absolute; left: 18px; top: 16px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; color: var(--faint);
}
.oqp-banner-label {
  font-family: var(--mono); font-size: 12px; letter-spacing: .24em;
  text-transform: uppercase; color: #A6AFAF;
}

/* ---------- 分类页顶部自定义内容（替代原来的灰色 banner 占位） ---------- */
.oqp-top { margin-top: 0; }
.oqp-top img { width: 100%; height: auto; display: block; border-radius: 2px; }
.oqp-top-html { color: var(--ink-2); font-size: 16px; line-height: 1.8; }
.oqp-top-html > *:first-child { margin-top: 0; }
.oqp-top-html > *:last-child { margin-bottom: 0; }
/* ---------- 左栏布局：分类导航在左，内容在右 ---------- */
.oqp-layout {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: clamp(26px, 3.2vw, 54px);
  align-items: start;
}
/* 有顶部横幅/自定义内容时，横幅与内容之间留小间距 */
.oqp-top + .oqp-layout { margin-top: clamp(22px, 2.8vw, 36px); }
.oqp-side { position: relative; min-width: 0; }
.oqp-side-in { position: relative; display: flow-root; }
.oqp-main { min-width: 0; }

/* ---------- 左侧分类导航 ---------- */
.oqp-nav { position: relative; z-index: 90; margin: 0; padding: 0; }
/* JS 判定滚过原位后接管定位：不受主题 fixed 头部与 overflow 容器影响 */
.oqp-nav.is-fixed {
  position: fixed;
  top: var(--oqp-sticky-top, 0px);
  margin: 0;
  padding: 6px 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}
.oqp-nav-in {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 1px;
  padding-top: 4px;
  border-left: 1px solid var(--line);
}
.oqp-tab {
  position: relative; flex: 0 0 auto;
  margin-left: -1px;
  padding: 10px 0 10px 18px;
  border-left: 2px solid transparent;
  font-size: 15px; color: var(--muted); line-height: 1.55;
  transition: color .25s, border-color .25s;
}
.oqp-tab::after { display: none; }
.oqp-tab:hover { color: var(--ink); }
.oqp-tab.is-on {
  color: var(--brand-deep);
  border-left-color: var(--brand);
  font-weight: 500;
}

.oqp-nav::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 44px;
  background: linear-gradient(90deg, rgba(255,255,255,0), #fff 78%);
  pointer-events: none; opacity: 0; transition: opacity .25s;
}
@media (max-width: 900px) {
  .oqp-nav::after { opacity: 1; }
}
/* 吸顶占位：nav 变为 fixed 后由外层撑住原高度，避免页面跳动 */
.oqp-slot { position: relative; display: flow-root; }
/* 章节导航与首屏之间的间距放在外层，吸顶条自身不留 margin */
.oqp-slot-sub { margin-top: clamp(34px, 4.4vw, 56px); }

/* ---------- 标题区 ---------- */
.oqp-head { padding: 2px 0 clamp(22px, 2.6vw, 32px); }
.oqp-head h1 { font-size: clamp(30px, 3.6vw, 44px); }
.oqp-head-en {
  display: inline-block; margin-top: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--faint);
}
.oqp-head p {
  margin: 14px 0 0; max-width: 68ch;
  color: var(--muted); font-size: 16px; line-height: 1.8;
}

/* ---------- 分类合集 ---------- */
.oqp-cats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
}
.oqp-cat {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 2px; overflow: hidden;
  background: #fff;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.oqp-cat:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 14px 30px -22px rgba(15,20,22,.5); }
.oqp-cat-ph {
  position: relative; aspect-ratio: 3 / 2;
  background-color: var(--ph-a);
  background-image: repeating-linear-gradient(45deg, var(--ph-b) 0 1px, transparent 1px 9px);
  display: grid; place-items: center;
}
.oqp-cat-en {
  position: absolute; left: 14px; top: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: #98A2A3;
}
.oqp-cat-phlabel { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: #AEB6B6; }
.oqp-cat-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.oqp-cat-ph.has-img .oqp-cat-en { background: rgba(255,255,255,.92); padding: 3px 7px; border-radius: 2px; }
.oqp-cat-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 16px; }
.oqp-cat-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.oqp-cat-title h2 { font-size: 20px; letter-spacing: -.02em; }
.oqp-cat-idx { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.oqp-cat-body p {
  margin: 10px 0 16px; flex: 1;
  font-size: 14px; line-height: 1.75; color: var(--muted);
}
.oqp-cat-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 13px; border-top: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--faint);
}
.oqp-cat-spec { text-transform: uppercase; }
.oqp-cat-count { display: inline-flex; align-items: center; gap: 7px; color: var(--brand-deep); }
.oqp-cat-count i { font-style: normal; opacity: 0; transform: translateX(-5px); transition: opacity .28s, transform .28s; }
.oqp-cat:hover .oqp-cat-count i { opacity: 1; transform: none; }

/* ---------- 产品网格 ---------- */
.oqp-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
}
.oqp-grid.solo { grid-template-columns: 1fr; }

.oqp-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 2px; overflow: hidden;
  background: #fff;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.oqp-card:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 14px 30px -22px rgba(15,20,22,.5); }

.oqp-thumb {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background-color: var(--ph-a);
  background-image: repeating-linear-gradient(45deg, var(--ph-b) 0 1px, transparent 1px 9px);
  display: grid; place-items: center;
}
.oqp-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.oqp-card:hover .oqp-thumb img { transform: scale(1.03); }
.oqp-thumb-model {
  font-family: var(--mono); font-size: clamp(17px, 1.6vw, 22px);
  letter-spacing: .06em; color: #A9B2B2;
}
.oqp-thumb-tag {
  position: absolute; left: 12px; top: 10px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: #98A2A3;
}

.oqp-pick {
  position: absolute; right: 10px; top: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 11px;
  border: 1px solid rgba(15,20,22,.14); border-radius: 2px;
  background: rgba(255,255,255,.94); color: var(--ink-2);
  font-family: var(--sans); font-size: 12px; line-height: 1; cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity .22s, background .24s, color .24s, border-color .24s;
}
.oqp-card:hover .oqp-pick,
.oqp-card:focus-within .oqp-pick,
.oqp-pick.is-on { opacity: 1; pointer-events: auto; }
.oqp-pick:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.oqp-pick.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }

.oqp-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 16px; }
.oqp-card-model {
  font-family: var(--mono); font-size: 12px; letter-spacing: .05em;
  color: var(--brand-deep); margin-bottom: 8px;
}
.oqp-card-body h3 { font-size: 18px; margin-bottom: 8px; }
.oqp-card-desc { margin: 0; flex: 1; font-size: 14px; line-height: 1.7; color: var(--muted); }
.oqp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.oqp-tags li {
  font-family: var(--mono); font-size: 11px; letter-spacing: .02em;
  color: var(--ink-2); padding: 4px 8px;
  background: var(--surface-2); border-radius: 2px; white-space: nowrap;
}

/* 单产品时横向大卡 */
.oqp-grid.solo .oqp-card { flex-direction: row; }
.oqp-grid.solo .oqp-thumb { flex: 0 0 46%; aspect-ratio: auto; min-height: 280px; }
.oqp-grid.solo .oqp-card-body { justify-content: center; padding: clamp(24px, 3vw, 40px); }

/* 定制卡 */
.oqp-promo {
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  padding: clamp(24px, 2.6vw, 36px);
  background: var(--brand-dark); color: #fff; border-radius: 2px;
  grid-column: span var(--sp3, 2);
}
.oqp-promo-overline {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.62);
}
.oqp-promo h3 { font-size: clamp(20px, 2vw, 26px); }
.oqp-promo p { margin: 0; font-size: 14.5px; line-height: 1.75; color: rgba(255,255,255,.78); }
.oqp-promo-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  font-size: 14.5px; border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: 3px; align-self: flex-start;
  transition: gap .28s, border-color .28s;
}
.oqp-promo-link:hover { gap: 13px; border-color: #fff; }

.oqp-empty { padding: 60px 0; color: var(--muted); }

/* ---------- 详情页：面包屑 ---------- */
/* 顶部让开主题固定头部（高度由 front.js 写入 --oqp-header-h） */
.oqp-single {
  padding-bottom: clamp(96px, 8vw, 120px);
}
.oqp-crumb {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .03em;
  color: var(--faint); margin-bottom: clamp(20px, 2.6vw, 32px);
}
.oqp-crumb-path { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; min-width: 0; }
.oqp-crumb a { color: var(--muted); transition: color .2s; }
.oqp-crumb a:hover { color: var(--brand); }
.oqp-crumb b { font-weight: 400; color: var(--ink); }
.oqp-crumb-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; white-space: nowrap;
  transition: color .2s, gap .2s;
}
.oqp-crumb-back:hover { gap: 10px; }

/* ---------- 详情页：首屏 ---------- */
.oqp-gallery { min-width: 0; }
.oqp-banner-img { width: 100%; display: block; }
.oqp-buybar-act { display: flex; align-items: center; gap: 8px; }

.oqp-hero {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 60px); align-items: start;
}
.oqp-gallery-main {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px;
  background-color: var(--ph-a);
  background-image: repeating-linear-gradient(45deg, var(--ph-b) 0 1px, transparent 1px 9px);
}
.oqp-main-img { width: 100%; height: 100%; object-fit: cover; }
.oqp-ph { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; text-align: center; }
.oqp-ph-model {
  font-family: var(--mono); font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: .06em; color: #A9B2B2;
}
.oqp-ph-label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em;
  text-transform: uppercase; color: #AEB6B6;
}
.oqp-ph-tag {
  position: absolute; left: 14px; top: 12px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: #98A2A3;
}

.oqp-info-cat {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 10px;
}
.oqp-model-row { display: flex; align-items: center; gap: 10px; }
.oqp-model {
  font-family: var(--mono); font-size: clamp(24px, 2.6vw, 32px); font-weight: 500;
  letter-spacing: .01em; line-height: 1.15; color: var(--brand-deep);
}
.oqp-copy {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; padding: 0;
  border: 1px solid var(--line); border-radius: 2px;
  background: #fff; color: var(--muted); cursor: pointer;
  transition: color .2s, border-color .2s;
}
.oqp-copy:hover { color: var(--brand); border-color: var(--brand); }

.oqp-info h1 {
  margin-top: 12px; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.03em;
  text-wrap: balance;
}
.oqp-desc { margin: 14px 0 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.oqp-tags-lg { margin-top: 18px; }
.oqp-tags-lg li { font-size: 12px; padding: 5px 10px; }

.oqp-hls {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0 0; padding: 18px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.oqp-hls > div { padding: 0 14px; }
.oqp-hls > div:first-child { padding-left: 0; }
.oqp-hls > div + div { border-left: 1px solid var(--line); }
.oqp-hls dt {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 6px;
}
.oqp-hls dd {
  margin: 0; font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; max-height: 2.9em;
}

.oqp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.oqp-actions .oqp-btn { flex: 1 1 auto; min-width: 150px; }

/* ---------- 详情页：章节导航 ---------- */
.oqp-subnav {
  position: relative; z-index: 88;
  margin: 0 calc(-1 * var(--oqp-pad));
  padding: 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.oqp-subnav.is-fixed {
  position: fixed; left: 0; right: 0;
  margin: 0;
  top: var(--oqp-sticky-top, 0px);
  box-shadow: 0 12px 28px -26px rgba(15, 20, 22, .6);
}
.oqp-subnav-in {
  display: flex; gap: clamp(14px, 2.2vw, 30px);
  max-width: var(--oqp-max); margin: 0 auto;
  padding: 0 var(--oqp-pad);
  overflow-x: auto; scrollbar-width: none;
}
.oqp-subnav-in::-webkit-scrollbar { display: none; }
.oqp-subnav::-webkit-scrollbar { display: none; }
.oqp-subnav a {
  position: relative; flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 15px 0 13px;
  font-size: 14.5px; color: var(--muted); transition: color .24s;
}
.oqp-subnav a span { font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.oqp-subnav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.22,.8,.28,1);
}
.oqp-subnav a:hover { color: var(--ink); }
.oqp-subnav a.is-on { color: var(--brand-deep); }
.oqp-subnav a.is-on span { color: var(--brand); }
.oqp-subnav a.is-on::after { transform: scaleX(1); }

.oqp-subnav::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 44px;
  background: linear-gradient(90deg, rgba(255,255,255,0), #fff 78%);
  pointer-events: none; opacity: 0; transition: opacity .25s;
}
@media (max-width: 900px) {
  .oqp-subnav::after { opacity: 1; }
}

/* ---------- 详情页：图集缩略图 ---------- */
.oqp-gallery-thumbs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px;
}
.oqp-gthumb {
  width: 76px; height: 57px; padding: 0;
  border: 1px solid var(--line); border-radius: 2px;
  background: #fff; overflow: hidden; cursor: pointer;
  opacity: .58; transition: opacity .24s, border-color .24s;
}
.oqp-gthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oqp-gthumb:hover { opacity: .9; }
.oqp-gthumb.on { opacity: 1; border-color: var(--brand); }

/* ---------- 详情页：资料下载 ---------- */
.oqp-downloads {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 12px;
}
.oqp-download {
  display: flex; align-items: center; gap: 13px;
  padding: 15px 17px;
  border: 1px solid var(--line); border-radius: 2px; background: #fff;
  transition: border-color .26s, background .26s, transform .26s;
}
.oqp-download:hover { border-color: var(--brand); background: var(--brand-tint); transform: translateY(-2px); }
.oqp-download svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--brand); }
.oqp-download-name {
  flex: 1; min-width: 0; font-size: 14.5px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.oqp-download-ext {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .07em;
  color: var(--faint);
}

/* ---------- 详情页：概述里的编辑器内容 ---------- */
.oqp-overview-copy { max-width: 940px; }
.oqp-overview-copy img,
.oqp-overview-copy video,
.oqp-overview-copy iframe { max-width: 100%; height: auto; }
.oqp-overview-copy h2 { font-size: clamp(20px, 2.2vw, 26px); margin: 1.6em 0 .6em; }
.oqp-overview-copy h3 { font-size: 18px; margin: 1.4em 0 .5em; }
.oqp-overview-copy h4 { font-size: 16px; margin: 1.2em 0 .4em; }
.oqp-overview-copy p { font-size: 15.5px; line-height: 1.9; color: var(--ink-2); }
.oqp-overview-copy ul, .oqp-overview-copy ol { margin: 0 0 1.2em; padding-left: 1.3em; list-style: disc; }
.oqp-overview-copy ol { list-style: decimal; }
.oqp-overview-copy li { font-size: 15.5px; line-height: 1.85; color: var(--ink-2); margin-bottom: .4em; }
.oqp-overview-copy a { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 2px; }
.oqp-overview-copy table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 14.5px; }
.oqp-overview-copy th, .oqp-overview-copy td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.oqp-overview-copy figure { margin: 1.4em 0; }


/* ---------- 详情页：章节 ---------- */
.oqp-sect { padding: clamp(38px, 5vw, 64px) 0 0; }
.oqp-sect-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: clamp(20px, 2.6vw, 32px); }
.oqp-sect-head h2 { font-size: clamp(22px, 2.4vw, 28px); }

.oqp-overview { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 56px); }
.oqp-overview-copy p { font-size: 16px; line-height: 1.9; color: var(--ink-2); }
.oqp-overview-copy p:last-child { margin-bottom: 0; }
.oqp-scenes h3 {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 14px; font-weight: 400;
}
.oqp-scenes li { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-soft); font-size: 14.5px; color: var(--ink-2); }
.oqp-scenes li:last-child { border-bottom: 1px solid var(--line-soft); }
.oqp-scenes b { font-family: var(--mono); font-size: 11px; color: var(--brand); font-weight: 400; padding-top: 2px; }

.oqp-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.oqp-feat { padding-top: 18px; border-top: 1px solid var(--line-strong); }
.oqp-feat h3 { font-size: 17px; margin: 10px 0 8px; }
.oqp-feat p { margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--muted); }

.oqp-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.oqp-spec-group h3 {
  font-size: 13px; letter-spacing: .06em; color: var(--brand-deep);
  padding-bottom: 10px; border-bottom: 1px solid var(--ink);
}
.oqp-spec-group dl { margin: 0; }
.oqp-spec-group dl > div {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft);
}
.oqp-spec-group dt { font-size: 14px; color: var(--muted); }
.oqp-spec-group dd { margin: 0; font-size: 14.5px; color: var(--ink); text-align: right; }

.oqp-accs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.oqp-acc { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 2px; }
.oqp-acc-ph {
  flex: 0 0 66px; height: 66px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--faint); border-radius: 2px;
}
.oqp-acc-ph svg { width: 26px; height: 26px; }
.oqp-acc-body { min-width: 0; }
.oqp-acc-model { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--brand-deep); }
.oqp-acc-name { font-size: 15px; font-weight: 500; margin: 3px 0 4px; }
.oqp-acc-note { font-size: 13px; color: var(--muted); line-height: 1.6; }

.oqp-faq { border-top: 1px solid var(--line); }
.oqp-faq details { border-bottom: 1px solid var(--line); }
.oqp-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 19px 0; cursor: pointer;
  font-size: 16px; color: var(--ink); list-style: none;
  transition: color .24s;
}
.oqp-faq summary::-webkit-details-marker { display: none; }
.oqp-faq summary::after {
  content: "+"; font-family: var(--mono); font-size: 19px; font-weight: 400;
  color: var(--muted); line-height: 1; transition: transform .3s, color .24s;
}
.oqp-faq details[open] summary { color: var(--brand-deep); }
.oqp-faq details[open] summary::after { content: "−"; color: var(--brand); }
.oqp-faq summary:hover { color: var(--brand-deep); }
.oqp-faq-a { padding: 0 0 20px; }
.oqp-faq-a p { margin: 0; max-width: 80ch; font-size: 14.5px; line-height: 1.85; color: var(--muted); }

.oqp-rel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 24px); }
.oqp-rel-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; transition: border-color .3s, transform .3s, box-shadow .3s; }
.oqp-rel-card:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 14px 30px -22px rgba(15,20,22,.5); }
.oqp-rel-ph {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background-color: var(--ph-a);
  background-image: repeating-linear-gradient(45deg, var(--ph-b) 0 1px, transparent 1px 9px);
  display: grid; place-items: center;
}
.oqp-rel-ph img { width: 100%; height: 100%; object-fit: cover; }
.oqp-rel-body { display: flex; flex-direction: column; flex: 1; padding: 16px 16px 14px; }
.oqp-rel-body h3 { font-size: 16px; margin-bottom: 7px; }
.oqp-rel-body p { margin: 0; flex: 1; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.oqp-rel-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--line-soft);
  font-size: 13px; color: var(--brand-deep);
}
.oqp-rel-card:hover .oqp-rel-foot span:last-child { transform: translateX(4px); }
.oqp-rel-foot span:last-child { transition: transform .28s; }

/* ---------- 详情页：CTA ---------- */
.oqp-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  margin-top: clamp(44px, 6vw, 76px); padding: clamp(30px, 4vw, 52px);
  background: var(--brand-dark); color: #fff; border-radius: 2px;
}
.oqp-cta-overline {
  display: block; margin-bottom: 12px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.6);
}
.oqp-cta h2 { font-size: clamp(22px, 2.6vw, 30px); color: #fff; }
.oqp-cta p { margin: 10px 0 0; font-size: 15px; color: rgba(255,255,255,.78); }
.oqp-cta-act { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 吸底条 ---------- */
.oqp-buybar {
  position: fixed; left: 50%; bottom: 18px; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: min(880px, calc(100vw - 32px));
  padding: 12px 14px 12px 20px;
  background: rgba(255,255,255,.98); border: 1px solid var(--line);
  border-radius: 3px; box-shadow: 0 18px 40px -24px rgba(15,20,22,.6);
  transform: translate(-50%, 130%); opacity: 0; pointer-events: none;
  transition: transform .4s cubic-bezier(.22,.8,.28,1), opacity .3s;
}
.oqp-buybar.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.oqp-buybar-info { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex: 1 1 auto; }
.oqp-buybar-info b { font-family: var(--mono); font-size: 14px; color: var(--brand-deep); letter-spacing: .04em; white-space: nowrap; }
.oqp-buybar-info span { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oqp-buybar-act { flex: 0 0 auto; }
.oqp-buybar .oqp-btn { height: 42px; padding: 0 18px; font-size: 14.5px; }

.oqp-toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 80;
  padding: 11px 20px; border-radius: 2px;
  background: var(--ink); color: #fff; font-size: 14px;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  transition: transform .28s, opacity .28s;
}
.oqp-toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- 选型对比 ---------- */
.oqp-selbar {
  position: fixed; left: 50%; bottom: 18px; z-index: 70;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  width: min(900px, calc(100vw - 32px));
  padding: 12px 14px 12px 18px;
  background: rgba(255,255,255,.98); border: 1px solid var(--line);
  border-radius: 3px; box-shadow: 0 18px 40px -24px rgba(15,20,22,.6);
  transform: translate(-50%, 130%); opacity: 0; pointer-events: none;
  transition: transform .4s cubic-bezier(.22,.8,.28,1), opacity .3s;
}
.oqp-selbar.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.oqp-selbar-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.oqp-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 8px 5px 10px; border: 1px solid var(--line); border-radius: 2px;
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); background: #fff;
}
.oqp-chip button {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--faint); font-size: 14px; line-height: 1;
}
.oqp-chip button:hover { color: var(--ink); }
.oqp-selbar-act { display: flex; gap: 8px; }
.oqp-selbar-act .oqp-btn { height: 38px; padding: 0 16px; font-size: 14px; }

.oqp-modal {
  position: fixed; inset: 0; z-index: 90;
  display: none; align-items: center; justify-content: center;
  padding: 24px; background: rgba(15,20,22,.52);
}
.oqp-modal.show { display: flex; }
/* 弹窗打开时收起选型栏，避免两个浮层叠在一起 */
.oqp-modal.show ~ .oqp-selbar,
.oqp-selbar.is-dim { opacity: 0; transform: translate(-50%, 130%); pointer-events: none; }
.oqp-modal-in {
  width: min(1080px, 100%); max-height: 84vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 3px; overflow: hidden;
}
.oqp-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.oqp-modal-head h3 { font-size: 18px; }
.oqp-modal-x { border: 0; background: none; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; }
.oqp-modal-x:hover { color: var(--ink); }
.oqp-modal-body { overflow: auto; padding: 0 22px 22px; }
.oqp-cmp { width: 100%; min-width: 520px; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.oqp-cmp th, .oqp-cmp td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.oqp-cmp thead th {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-strong);
  font-weight: 500;
}
.oqp-cmp thead th:first-child { color: var(--faint); font-weight: 400; }
.oqp-cmp thead th b {
  display: block; font-family: var(--mono); font-size: 13px; letter-spacing: .04em;
  color: var(--brand-deep); margin-bottom: 4px;
}
.oqp-cmp thead th a { color: inherit; }
.oqp-cmp thead th a:hover b { text-decoration: underline; }
.oqp-cmp thead th span {
  display: block; max-width: 240px;
  font-size: 12.5px; font-weight: 400; color: var(--muted); line-height: 1.5;
}
.oqp-cmp tbody th {
  width: 168px; background: #fff;
  font-weight: 400; color: var(--muted); white-space: nowrap;
}
.oqp-cmp tbody tr:hover td { background: #FAFCFC; }
.oqp-cmp .is-dash { color: var(--faint); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .oqp-hero { grid-template-columns: 1fr; gap: 28px; }
  .oqp-gallery-main { aspect-ratio: auto; height: clamp(240px, 40vw, 400px); }
  .oqp-overview { grid-template-columns: 1fr; gap: 28px; }
  .oqp-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oqp-specs { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 900px) {
  .oqp-cats, .oqp-grid, .oqp-rel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oqp-promo { grid-column: span var(--sp2, 1); }
  .oqp-grid.solo .oqp-card { flex-direction: column; }
  .oqp-grid.solo .oqp-thumb { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .oqp-feats { grid-template-columns: 1fr; }
  .oqp-accs { grid-template-columns: 1fr; }

  /* 窄屏：左栏折回顶部横条，可横向滑动 */
  .oqp-layout { display: block; }
  .oqp-side { margin-bottom: clamp(18px, 3vw, 26px); }
  .oqp-nav.is-fixed {
    left: 0 !important; right: 0; width: auto !important;
    /* 吸附后铺满屏幕，靠内边距与内容对齐，不让标签贴边 */
    padding: 0 var(--oqp-pad);
    border-bottom: 1px solid var(--line);
  }
  .oqp-nav-in {
    flex-direction: row; gap: clamp(16px, 2.6vw, 28px);
    padding: 0; border-left: 0;
    overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  }
  .oqp-nav-in::-webkit-scrollbar { display: none; }
  .oqp-tab {
    margin-left: 0; padding: 14px 0 12px;
    border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap;
  }
  .oqp-tab::after { display: none; }
  .oqp-tab.is-on { border-bottom-color: var(--brand); }
}

@media (max-width: 680px) {
  .oqp { font-size: 15.5px; }
  /* minmax(0,1fr)：避免卡片内的长文本把整列撑宽、导致页面横向滚动 */
  .oqp-cats, .oqp-grid, .oqp-rel { grid-template-columns: minmax(0, 1fr); }
  .oqp-promo { grid-column: span 1; }

  /* 产品卡改为左图右文，避免页面过长 */
  .oqp-card { flex-direction: row; }
  .oqp-thumb { flex: 0 0 116px; aspect-ratio: auto; min-height: 116px; }
  .oqp-thumb-tag { display: none; }
  .oqp-thumb-model { font-size: 14px; }
  .oqp-card-body { padding: 13px 14px; }
  .oqp-card-body h3 { font-size: 16.5px; margin-bottom: 5px; }
  .oqp-card-desc { font-size: 13.5px; }
  .oqp-tags { margin-top: 9px; }
  .oqp-tags li { font-size: 10.5px; padding: 3px 6px; }

  /* 小图上只留一个加号，避免遮挡型号 */
  .oqp-pick {
    right: 6px; top: 6px; width: 26px; height: 26px;
    padding: 0; justify-content: center;
    font-size: 0; border-radius: 2px;
  }
  .oqp-pick::before { content: "＋"; font-size: 14px; line-height: 1; }
  .oqp-pick.is-on::before { content: "✓"; font-size: 13px; }

  .oqp-hls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oqp-hls > div:nth-child(3) { display: none; }
  .oqp-hls > div { padding: 0 12px; }
  .oqp-hls > div + div { border-left: 1px solid var(--line); }

  .oqp-actions .oqp-btn { flex: 1 1 100%; }
  .oqp-spec-group dl > div { grid-template-columns: 1fr; gap: 3px; }
  .oqp-spec-group dd { text-align: left; }

  .oqp-selbar { padding: 12px; }
  .oqp-selbar-chips { width: 100%; }
  .oqp-selbar-act { width: 100%; }
  .oqp-selbar-act .oqp-btn { flex: 1; }

  .oqp-buybar { padding: 10px 12px; gap: 10px; }
  .oqp-buybar-info span { display: none; }
  .oqp-buybar-act { display: flex; gap: 6px; }
  .oqp-buybar .oqp-btn { height: 38px; padding: 0 12px; font-size: 13px; }

  .oqp-cta { padding: 26px 22px; }
  .oqp-cta-act { width: 100%; }
  .oqp-cta-act .oqp-btn { flex: 1; }
  .oqp-toast { bottom: 84px; width: calc(100vw - 40px); text-align: center; }
}

/* 触屏无悬停：选型按钮常显 */
@media (hover: none) {
  .oqp-pick { opacity: 1; pointer-events: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .oqp *, .oqp *::before, .oqp *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
