/* ============================================================
   NTKRIB 全站内页共用样式（浅色版式）
   版式基准 = 品牌资讯列表页 news.html（css/news-list.css）
   适用页面：products / product / craft / craft-detail / contact / brand
   —— 顶部导航、底部为全站共用组件（css/site-nav.css、css/site-footer.css）
   ============================================================ */
* { box-sizing: border-box; }
html { background: #fff; }
body.ip {
  margin: 0; background: #fff; color: #14151a;
  font-family: 'Plus Jakarta Sans', "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  font-size: 14px; line-height: 1.7; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.ip a { color: inherit; text-decoration: none; }
body.ip img { max-width: 100%; display: block; }

/* ---------- 导航：与首页/资讯页完全一致（深色毛玻璃条） ---------- */
.ip #reactbits-header .staggered-menu-header {
  background: rgba(0, 0, 0, .86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.ip #reactbits-header .sm-logo { cursor: pointer; }

/* ---------- 内容列：与首页 .scene-inner / 资讯页 .nl-wrap 同宽 ---------- */
/* 2026-09-12 单列定义：与 list-hero.css 里那份完全相同（详情页不引 list-hero.css，
   本页要能自洽）。改数值时两处一起改。见 list-hero.css 顶部的完整说明。 */
body.ip, body.lh-page {
  --col-w: min(1860px, calc(100% - 96px));
  --col-pad: clamp(24px, 4vw, 88px);
}
@media (min-width: 841px) { body.ip, body.lh-page { --col-w: min(1860px, calc(100% - 200px)); } }
@media (max-width: 1200px) { body.ip, body.lh-page { --col-pad: clamp(20px, 4vw, 64px); } }
@media (max-width: 750px) { body.ip, body.lh-page { --col-pad: 16px; } }
@media (max-width: 640px) { body.ip, body.lh-page { --col-w: calc(100% - 40px); } }

.ip-wrap { width: var(--col-w); margin: 0 auto; }

.ip-main { padding: 136px 0 110px; min-height: 100svh; }
/* 2026-09-12 CLS 修复：详情页正文由 JS 异步 fetch(JSON) 后才渲染，首帧页面很短
   → 页脚先是贴在 y≈430（视口内可见），渲染完被顶到 1900+，实测单次位移
   product.html CLS 0.5222 / news-detail 0.1329（阈值：好 ≤0.1）。
   给主内容区预留一屏高度，页脚从首帧起就落在视口之外，该位移不再计入 CLS。 */


/* ---------- 标题区（与资讯列表页同规格：英文 60px + 中文 48px + 右侧一句话） ---------- */
.ip-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin: 0 0 40px; }
.ip-head h1 { flex: 0 0 auto; margin: 0; }
.ip-en { display: block; font-size: 60px; line-height: 75px; font-weight: 700; color: #14151a; }
.ip-zh { display: block; margin-top: 4px; font-size: 48px; line-height: 60px; font-weight: 700; color: #14151a; }
.ip-head p { flex: 0 1 auto; margin: 0; color: rgba(20, 21, 26, .6); font-size: 13px; line-height: 1.9; }
/* 宽屏时右侧说明保持单行（不出现第二行的零星几个字）；1440 以下自然换行，避免文案顶出内容栏 */
@media (min-width: 1440px) { .ip-head p { white-space: nowrap; } }

/* ---------- 工具条 + 筛选 ---------- */
.ip-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 24px 0; border-top: 1px solid rgba(20, 21, 26, .2); border-bottom: 1px solid rgba(20, 21, 26, .2);
}
.ip-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ip-chip {
  padding: 10px 20px; border: 1px solid rgba(20, 21, 26, .18); background: #fff; color: #14151a;
  font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: border-color .25s, background .25s, color .25s;
}
.ip-chip:hover { border-color: #14151a; }
.ip-chip.is-active { background: #14151a; border-color: #14151a; color: #fff; }
.ip-count { color: rgba(20, 21, 26, .6); font-size: 13px; }

/* ---------- 网格（产品 / 样片） ---------- */
.ip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 46px 30px; margin-top: 46px; }
.ip-tile { display: block; }
.ip-tile .ph { background: #f5f5f6; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ip-tile .ph img { width: 100%; height: auto; transition: transform .5s ease; }
.ip-tile:hover .ph img { transform: scale(1.04); }
.ip-tile h3 { margin: 20px 0 0; font-size: 18px; line-height: 1.5; font-weight: 700; color: #14151a; }
.ip-tile p { margin: 6px 0 0; color: rgba(20, 21, 26, .6); font-size: 13px; line-height: 1.7; }
.ip-tile .no { display: block; margin-top: 12px; color: rgba(20, 21, 26, .4); font-size: 12px; letter-spacing: .08em; }

/* ---------- 分页（与资讯列表页同规格） ---------- */
.ip-pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 74px 0 0; flex-wrap: wrap; }
.ip-pager button, .ip-pager span {
  min-width: 44px; height: 44px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(20, 21, 26, .18); background: #fff; color: #14151a;
  font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer;
  transition: border-color .25s, background .25s, color .25s;
}
.ip-pager button:hover { border-color: #14151a; }
.ip-pager .is-active { background: #14151a; border-color: #14151a; color: #fff; cursor: default; }
.ip-pager .ip-arrow { letter-spacing: .04em; }
.ip-pager button[disabled] { color: rgba(20, 21, 26, .28); cursor: not-allowed; border-color: rgba(20, 21, 26, .1); }

/* ---------- 详情页骨架（与资讯详情页同规格） ---------- */
.ip-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 50px; padding-bottom: 30px; border-bottom: 1px solid rgba(20, 21, 26, .1); }
.ip-meta span { display: block; color: #999; font-size: 14px; line-height: 28px; }
.ip-meta b { display: block; color: #000; font-size: 14px; font-weight: 700; line-height: 22px; }
.ip-title { margin: 75px 0 0; font-size: 48px; line-height: 1.2; font-weight: 700; color: #000; }
.ip-lead { margin: 22px 0 0; color: #999; font-size: 16px; line-height: 1.6; letter-spacing: .25px; max-width: 1100px; }
.ip-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 1fr); gap: 80px; margin-top: 76px; align-items: start; }
.ip-article { min-width: 0; padding-top: 30px; }
.ip-article > * { margin: 0 0 22px; }
.ip-article h2 { font-size: 24px; line-height: 2; font-weight: 700; color: #101828; margin: 40px 0 20px; }
.ip-article p { color: #475467; font-size: 14px; line-height: 2; max-width: 980px; }
.ip-article figure { margin: 0 0 34px; }
.ip-article figure img { width: 100%; background: #f6f6f7; border-radius: 20px; }
.ip-article figcaption { margin-top: 14px; color: #999; font-size: 13px; line-height: 1.7; }
.ip-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ip-three img { width: 100%; background: #f6f6f7; border-radius: 14px; }
.ip-spec { border-top: 1px solid rgba(20, 21, 26, .15); margin-top: 34px; }
.ip-spec div { display: flex; gap: 20px; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid rgba(20, 21, 26, .1); }
.ip-spec span { color: rgba(20, 21, 26, .55); font-size: 14px; }
.ip-spec b { font-size: 14px; text-align: right; }
.ip-side { position: sticky; top: 124px; text-align: center; }
/* 业务微信二维码（2026-09-10 放入真码，原为虚线占位框） */
.ip-qr {
  width: 162px; height: 162px; margin: 0 auto;
  border: 1px solid rgba(20, 21, 26, .08); border-radius: 10px; overflow: hidden; background: #fff;
}
.ip-qr img { display: block; width: 100%; height: 100%; }
.ip-side p.ip-qr-cap { margin: 10px 0 0; font-size: 12px; line-height: 1.6; font-weight: 400; color: rgba(20, 21, 26, .55); }
.ip-side p { margin: 12px 0 0; color: #3b3b3b; font-size: 14px; font-weight: 700; line-height: 22px; }
.ip-side-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.ip-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 26px; background: #14151a; color: #fff; border: 1px solid #14151a;
  font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .25s, color .25s;
}
.ip-btn:hover { background: #000; }
.ip-btn--ghost { background: #fff; color: #14151a; }
.ip-btn--ghost:hover { background: #14151a; color: #fff; }

/* ---------- 底部相关推荐灰带（与资讯详情页同款） ---------- */
.ip-related { background: #fafafa; margin-top: 100px; padding: 60px 0; }
.ip-related h2 { margin: 0 0 40px; font-size: 22px; line-height: 1.25; font-weight: 700; color: #14151a; }
.ip-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ip-card-img {
  overflow: hidden; background: #fff; aspect-ratio: 3 / 4;
  display: flex; align-items: center; justify-content: center;
}
.ip-card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; }
/* 卡片文案左右内缩 + 与图片拉开间距（2026-09-10 用户：三张卡的模板共用，「文字要在两边和上面留白」）。
   内缩值 12px 放在共享基础样式里，页面级只覆盖字号/颜色，不动 padding。 */
.ip-card h3 { margin: 20px 0 0; padding: 0 12px; font-size: 18px; line-height: 1.6; font-weight: 700; color: #14151a; }
.ip-card p { margin: 6px 0 0; padding: 0 12px; color: rgba(20, 21, 26, .6); font-size: 14px; line-height: 1.75; }

/* ---------- 浅色表单 ---------- */
.ip-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ip-field { display: flex; flex-direction: column; gap: 8px; }
.ip-field label { font-size: 13px; color: rgba(20, 21, 26, .55); }
.ip-field input, .ip-field select, .ip-field textarea {
  height: 50px; border: 1px solid rgba(20, 21, 26, .16); background: #fff; color: #14151a;
  padding: 0 14px; border-radius: 10px; outline: none; font-family: inherit; font-size: 14px;
}
.ip-field textarea { height: auto; min-height: 108px; padding: 12px 14px; resize: vertical; }
.ip-field input:focus, .ip-field select:focus, .ip-field textarea:focus { border-color: #14151a; }
.ip-field--wide { grid-column: 1 / -1; }
.ip-submit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; }
.ip-status { color: #14151a; font-size: 14px; }

/* ---------- 询价弹窗（浅色，取代旧 commerce 深色弹窗） ---------- */
dialog.ip-dialog {
  border: 1px solid rgba(20, 21, 26, .12); border-radius: 18px; background: #fff; color: #14151a;
  width: min(760px, 92vw); padding: 34px clamp(20px, 3vw, 40px); position: relative;
}
dialog.ip-dialog::backdrop { background: rgba(10, 10, 12, .55); }
dialog.ip-dialog h2 { margin: 6px 0 14px; font-size: 24px; line-height: 1.3; }
.ip-dialog-kicker { margin: 0; font-size: 11px; letter-spacing: .2em; color: rgba(20, 21, 26, .45); }
.ip-dialog-sub { margin: 0 0 20px; color: rgba(20, 21, 26, .6); font-size: 14px; }
.ip-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; font-size: 22px; line-height: 1; color: rgba(20, 21, 26, .5); cursor: pointer; }
.ip-close:hover { color: #14151a; }

/* ---------- 空态 ---------- */
.ip-empty { padding: 80px 0; color: rgba(20, 21, 26, .55); }

/* ---------- 响应式 ---------- */
@media (max-width: 1240px) { .ip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  .ip-en { font-size: 44px; line-height: 56px; }
  .ip-zh { margin-top: 3px; font-size: 36px; line-height: 46px; }
  .ip-head { gap: 26px; }
}
@media (max-width: 900px) {
  .ip-main { padding: 108px 0 70px; }
  .ip-title { font-size: 30px; }
  .ip-body { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 40px; }
  .ip-side { position: static; margin-top: 24px; }
  .ip-cards { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .ip-related { margin-top: 60px; padding: 40px 0; }
  .ip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ip-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 28px; }
  .ip-en { font-size: 32px; line-height: 40px; }
  .ip-zh { margin-top: 2px; font-size: 30px; line-height: 37.5px; }
  .ip-form { grid-template-columns: 1fr; }
  .ip-grid { gap: 34px 20px; }
  .ip-tile h3 { font-size: 16px; }
  .ip-pager { margin-top: 46px; }
  .ip-meta { gap: 12px 20px; }
  .ip-three { grid-template-columns: minmax(0, 1fr); }
}
/* 2026-09-15 用户「产品列表页，一行展示 3 个产品」：
   手机上从 1 列改 3 列（小米13 390px 下每张约 93px），字号/间距同步收，
   说明文案在 3 列里会挤成碎句，手机端隐藏，只留 品名 + 编号。 */
@media (max-width: 520px) {
  .ip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 10px; }
  .ip-tile h3 { margin-top: 10px; font-size: 12px; line-height: 1.45; }
  .ip-tile p { display: none; }
  .ip-tile .no { margin-top: 5px; font-size: 9px; letter-spacing: 0; }
}
