/* ============================================================
   OEM/ODM 页（?r=oem）— 按 oem002.jpg / oem01~oem08 参考图还原
   仅在 ?r=oem 加载；类名统一 .oem- 前缀，避免与 site.css 冲突
   样式（颜色 / 字号 / 图片尺寸）按参考图写死，后台只填文字与图片
   整页限宽 760px 居中（route-oem 时连同版头/页脚容器一起收窄）
   ============================================================ */
.oem {
  --oem-black: #000000;
  --oem-red: #e60012;        /* 红横幅 / 红色说明文字 */
  --oem-maroon: #8b1a1a;     /* Payment 标题 */
  --oem-ink: #333333;        /* 正文深灰 */
  --oem-gray: #777777;       /* 副标题灰 */
  --oem-line: #cccccc;
  --oem-maxw: 760px;

  max-width: var(--oem-maxw);
  margin: 0 auto;
  background: #fff;
  color: var(--oem-ink);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}
/* oem 路由下，版头/导航/页脚容器也一起收窄到 760，整页一致 */
.route-oem .container { max-width: var(--oem-maxw); }
.oem *, .oem *::before, .oem *::after { box-sizing: border-box; }
.oem img { max-width: 100%; display: block; }
.oem a { color: inherit; text-decoration: none; }
.oem-wrap { max-width: var(--oem-maxw); margin: 0 auto; padding: 0 16px; }

/* ---------- 横幅（黑 / 红） ---------- */
.oem-banner {
  width: 100%;
  text-align: center;
  font-weight: 700;
  line-height: 1.35;
  padding: 9px 16px;
}
.oem-banner span { display: inline-block; }
.oem-banner-black { background: var(--oem-black); color: #fff; text-align: left; font-size: 15px; font-weight: 700; letter-spacing: .02em; padding: 8px 16px; }
.oem-banner-red   { background: var(--oem-red);   color: #fff; font-size: 18px; font-weight: 700; }
.oem-banner-red small { display: block; font-size: 11px; font-weight: 400; font-style: italic; margin-top: 2px; opacity: .95; }

/* ---------- 1) QC 2x2 ---------- */
.oem-qc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 18px 0 38px; }
.oem-qc-cell { margin: 0; }
.oem-qc-cell img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.oem-qc-cell figcaption {
  background: var(--oem-red); color: #fff; text-align: center;
  font-size: 12px; font-weight: 600; padding: 7px 6px; letter-spacing: .03em;
}

/* ---------- 2) Services 三列 ---------- */
.oem-svc-head { text-align: center; padding: 30px 16px 6px; }
.oem-svc-title { font-size: 20px; font-weight: 700; color: #000; margin: 0; }
.oem-svc-sub { font-size: 13px; color: var(--oem-gray); margin: 8px 0 0; text-align: center; }
.oem-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 22px 0 46px; }
.oem-svc-cell { margin: 0; text-align: center; }
.oem-svc-cell img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #f2f2f2; border-radius: 12px; }
.oem-svc-cell figcaption { font-size: 16px; font-weight: 600; color: #000; margin-top: 12px; }

/* ---------- 3) Process 3x2 ---------- */
.oem-proc-title { text-align: center; font-size: 18px; font-weight: 700; color: #000; margin: 0 0 26px; }
.oem-proc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.oem-proc-cell { margin: 0; text-align: center; }
.oem-proc-cell img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.oem-proc-cell figcaption { font-size: 16px; font-weight: 700; color: #000; margin-top: 8px; }
.oem-proc-cell figcaption::before { content: "\25B6"; color: var(--oem-red); font-size: 12px; margin-right: 6px; vertical-align: 1px; }

/* ---------- 4) Packaging 网格 + 大图 ---------- */
.oem-pack { padding-bottom: 8px; }
.oem-pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 10px; padding: 24px 0 18px; }
.oem-pack-cell { margin: 0; border: 1px solid var(--oem-line); background: #fff; border-radius: 6px; overflow: hidden; }
.oem-pack-cell img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: 10px; }
.oem-pack-cell figcaption { text-align: center; font-size: 12.5px; color: #555; padding: 5px 4px; border-top: 1px solid #eee; line-height: 1.3; }
.oem-pack-big { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; padding: 14px 0 42px; }
.oem-pack-bigcell { margin: 0; text-align: center; }
.oem-pack-bigcell img { width: 100%; height: auto; border: 1px solid #eee; border-radius: 6px; }
.oem-pack-bigcell figcaption { display: inline-block; background: var(--oem-red); color: #fff; font-size: 12.5px; font-weight: 600; padding: 5px 14px; margin-top: 9px; border-radius: 3px; }

/* ---------- 5) Why ---------- */
.oem-why-title { font-size: 16px; font-weight: 700; color: #000; margin: 0; padding: 30px 0 6px; }
.oem-why-text { font-size: 15.5px; line-height: 1.95; color: var(--oem-ink); margin: 0 0 6px; white-space: normal; }
.oem-why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 16px 0 42px; }
.oem-why-cell { margin: 0; }
.oem-why-cell img { width: 100%; display: block; border-radius: 6px; }

/* ---------- 6) Coop 圆步骤图集 ---------- */
.oem-coop { padding: 30px 0; }
.oem-coop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.oem-coop-cell { margin: 0; text-align: center; }
.oem-coop-cell img { width: 100%; border-radius: 8px; }
.oem-coop-cell figcaption { font-size: 14px; color: #000; margin-top: 8px; }

/* ---------- 7) Delivery & Payment ---------- */
.oem-delivery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; padding: 22px 0 42px; }
.oem-delivery-cell { margin: 0; }
.oem-delivery-cell img { width: 100%; border-radius: 6px; }

/* ---------- 8) Payment method ---------- */
.oem-pay-title { font-size: 16px; font-weight: 700; color: var(--oem-maroon); margin: 0; padding: 28px 0 6px; }
.oem-pay-body { font-size: 14.5px; line-height: 1.95; color: var(--oem-ink); margin: 0 0 8px; white-space: normal; }
.oem-pay-list { padding: 14px 0 44px; }
.oem-pay-cell { margin: 0; }
.oem-pay-cell img { width: 100%; height: auto; display: block; border-radius: 6px; }
.oem-pay-cell--full { margin-bottom: 14px; }
.oem-pay-rest { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.oem-pay-cell--half { margin: 0; }

/* ---------- 响应式：以 760 为基准收紧 ---------- */
@media (max-width: 760px) {
  .oem-svc-grid, .oem-proc-grid, .oem-pack-big, .oem-coop-grid { grid-template-columns: repeat(2, 1fr); }
  .oem-pack-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .oem-svc-grid, .oem-proc-grid, .oem-pack-big, .oem-coop-grid,
  .oem-pack-grid, .oem-qc-grid, .oem-why-grid { grid-template-columns: 1fr; }
}
