/* 产品详情页 v3.3 —— dd3.cc 版式 + 用户 6 项调整（2026-10-30）
 *
 * v3.2 → v3.3 变更：
 *   ① 规格表整段移除（.nr-specs / .nr-spec-table）
 *   ② 色卡从「5 列方块栅格」改为「横向一行排布」的胶囊 chip（名字不再截断）
 *   ③ FAQ 全部默认展开（JS 侧改动，样式不变）
 *   ④ 导航栏字体统一 + 放大一倍（独立文件 /_assets/noray/navfont.css）
 *   ⑤ 删除 Full product description 折叠区（JS 侧改动）
 *   ⑥ Contact Us 按钮链接修正为绝对路径 /contact/（JS 侧改动）
 *
 * 参照 https://dd3.cc/filament/pla-plus 的骨架：
 *   首屏两栏（左：图片轮播 / 右：eyebrow + 巨号标题 + Overview + CTA + 色卡）
 *   → 信任条 → Key Features | Applications（两栏）
 *   → OEM/ODM | Quality Control | Packaging Options（三栏，浅灰底）
 *   → FAQ（两栏）→ Related products → Request Sample 联系区
 *
 * 视觉语言照抄 dd3 的骨架但换成诺睿的品牌色：
 *   dd3  --exportas-blue #012169 / --exportas-red #c8102e
 *   诺睿 --nr-ink 深蓝墨色 / --nr-accent 品牌橙 #e58722
 *   边框 #dbe1e8、浅灰底 #f7f9fc 全部沿用 dd3 的数值。
 *
 * 命名一律 nr- 前缀：.row/.item 这类通用名会撞站点模板的全局样式。
 * 布局数字沿用 dd3：shell 1224px、栅格 gap clamp(1rem,3vw,2rem)、
 * 按钮 min-width 10.5rem / min-height 3.1rem。
 */
#nrd3 {
  --nr-ink: #12233d;
  --nr-accent: #e58722;
  --nr-accent-dark: #c96f14;
  --nr-eyebrow: #b54708;
  --nr-line: #dbe1e8;
  --nr-soft: #f7f9fc;
  --nr-th: #eef3f8;
  --nr-body: #3f4a5a;
  --nr-muted: #6b7686;
  color: var(--nr-body);
  background: #fff;
}
#nrd3 * { box-sizing: border-box; }
#nrd3 img { display: block; max-width: 100%; }
#nrd3 a { color: inherit; text-decoration: none; }
#nrd3 .nr-shell { width: min(1224px, 100% - 2rem); margin: 0 auto; }

/* 旧模板区块整段收掉（和 v3 一样：详情内容由 #nrd3 重排） */
html.nrd3 section.product-detail,
html.nrd3 section.pro_text,
html.nrd3 section.detail-height,
html.nrd3 .rightint-inquiry,
html.nrd3 .nrd-cards,
html.nrd3 .nrd-cta { display: none !important; }

#nrd3 .nr-src { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------ 面包屑 ------------------------------ */
#nrd3 .nr-crumb {
  border-bottom: 1px solid var(--nr-line);
  padding: 14px 0;
}
#nrd3 .nr-crumb .in {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 14px; color: var(--nr-muted);
}
#nrd3 .nr-crumb a:hover { color: var(--nr-accent); }
#nrd3 .nr-crumb .sep { color: #c2c9d2; }

/* ------------------------------ 首屏 ------------------------------ */
#nrd3 .nr-mat { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2rem, 5vw, 3.5rem); }
#nrd3 .nr-mat-grid {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
#nrd3 .nr-media-col { display: grid; gap: 1.25rem; align-self: start; }

/* 图片轮播 */
#nrd3 .nr-media {
  margin: 0; position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--nr-line); border-radius: 14px;
}
#nrd3 .nr-media img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff;
}
#nrd3 .nr-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; cursor: pointer; font-size: 26px; line-height: 1;
  background: rgba(255, 255, 255, .92); color: var(--nr-ink);
  box-shadow: 0 2px 10px rgba(18, 35, 61, .16);
  display: flex; align-items: center; justify-content: center;
  transition: background .16s, color .16s;
}
#nrd3 .nr-arrow:hover { background: var(--nr-accent); color: #fff; }
#nrd3 .nr-arrow.prev { left: 12px; }
#nrd3 .nr-arrow.next { right: 12px; }

/* 规格表 —— v3.3 已整段移除，这里不再有 .nr-specs / .nr-spec-table */

/* 右栏文案 */
#nrd3 .nr-copy { max-width: 640px; }
#nrd3 .nr-eyebrow {
  color: var(--nr-eyebrow); text-transform: uppercase; letter-spacing: .04em;
  margin: 0 0 .75rem; font-size: .78rem; font-weight: 700;
}
#nrd3 .nr-copy h1 {
  margin: 0 0 1.1rem; color: var(--nr-ink);
  font-weight: 800; line-height: 1.02; letter-spacing: -.5px;
}
#nrd3 .nr-copy h1 > span {
  display: block; font-size: clamp(2.1rem, 4.6vw, 3.6rem);
}
#nrd3 .nr-copy h1 > small {
  display: block; margin-top: .5rem;
  font-size: clamp(1rem, 1.8vw, 1.35rem); font-weight: 500; line-height: 1.3;
  color: var(--nr-muted); letter-spacing: 0;
}
#nrd3 .nr-copy h2 {
  color: var(--nr-ink); margin: 0 0 .85rem;
  font-size: clamp(1.55rem, 2.9vw, 2.4rem); font-weight: 400; line-height: 1.14;
}
#nrd3 .nr-ov { margin: 0 0 1.5rem; font-size: 1.02rem; line-height: 1.8; color: var(--nr-body); }

/* 主按钮 —— dd3 的 exportas-button */
#nrd3 .nr-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 10.5rem; min-height: 3.1rem; padding: .85rem 1.45rem;
  background: var(--nr-accent); color: #fff; border: 0; cursor: pointer;
  font-family: inherit; font-size: 1rem; font-weight: 700; text-align: center;
  transition: background .16s, transform .16s;
}
#nrd3 .nr-btn:hover { background: var(--nr-accent-dark); }

/* 色卡 —— v3.3 改为横向一行排布（胶囊 chip，色名不再截断） */
#nrd3 .nr-colors { margin-top: 1.6rem; }
#nrd3 .nr-color-picker {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .5rem .55rem; margin: .2rem 0 1rem;
}
#nrd3 .nr-color-option {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .3rem .85rem .3rem .34rem; background: #fff;
  border: 1px solid var(--nr-line); border-radius: 999px; cursor: default;
}
#nrd3 .nr-color-option i {
  width: 1.55rem; height: 1.55rem; border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .14); display: block; flex: 0 0 auto;
}
#nrd3 .nr-color-option .nr-color-text { min-width: 0; }
#nrd3 .nr-color-option strong {
  display: block; color: var(--nr-ink); font-size: .88rem; font-weight: 600;
  white-space: nowrap; line-height: 1.45;
}
#nrd3 .nr-color-option small {
  display: block; color: var(--nr-muted); font-size: .72rem; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#nrd3 .nr-color-note { color: var(--nr-ink); margin: 0 0 .45rem; font-size: .95rem; line-height: 1.6; }

/* ------------------------------ 信任条 ------------------------------ */
#nrd3 .nr-trust { background: var(--nr-soft); border-top: 1px solid var(--nr-line); border-bottom: 1px solid var(--nr-line); }
#nrd3 .nr-trust .in {
  display: flex; align-items: center; justify-content: center; gap: 44px;
  padding: 22px 24px; flex-wrap: nowrap; text-align: center;
}
#nrd3 .nr-trust .it {
  font-size: 18px; color: var(--nr-body); line-height: 1.35; white-space: nowrap;
  display: inline-flex; align-items: baseline; gap: 6px;
}
#nrd3 .nr-trust .it b { color: var(--nr-ink); font-weight: 800; font-size: 26px; letter-spacing: -.3px; }

/* ------------------------------ 通用小节 ------------------------------ */
#nrd3 .nr-section { padding: clamp(1.6rem, 4vw, 3.2rem) 0; }
#nrd3 .nr-section.nr-muted { background: var(--nr-soft); }
/* 整段小节的标题 —— 照 dd3 的大字细体 */
#nrd3 .nr-sec-title {
  color: var(--nr-ink); margin: 0 0 .4rem;
  font-size: clamp(1.55rem, 2.9vw, 2.4rem); font-weight: 400; line-height: 1.14;
}
#nrd3 .nr-sec-lead { margin: 0 0 1.4rem; font-size: .95rem; color: var(--nr-muted); }
#nrd3 .nr-faq, #nrd3 .nr-rel { margin-top: 0; }
#nrd3 .nr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
#nrd3 .nr-grid.three-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#nrd3 .nr-grid article {
  background: #fff; border: 1px solid var(--nr-line);
  padding: clamp(.85rem, 2vw, 1.4rem);
}
#nrd3 .nr-grid article h2 {
  color: var(--nr-ink); margin: 0 0 .85rem;
  font-size: 1.3rem; font-weight: 700; line-height: 1.25;
}
#nrd3 .nr-grid article ul { margin: 0; padding: 0; list-style: none; }
#nrd3 .nr-grid article li {
  position: relative; padding-left: 26px; margin-bottom: .7rem;
  font-size: .98rem; line-height: 1.65; color: var(--nr-body);
}
#nrd3 .nr-grid article li:last-child { margin-bottom: 0; }
#nrd3 .nr-grid article li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 14px; height: 14px; border-radius: 50%; background: var(--nr-accent);
}
#nrd3 .nr-grid article li::after {
  content: ""; position: absolute; left: 4.5px; top: .9em;
  width: 5px; height: 2.5px;
  border-left: 1.6px solid #fff; border-bottom: 1.6px solid #fff;
  transform: rotate(-45deg);
}

/* ------------------------------ FAQ ------------------------------ */
#nrd3 .nr-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
#nrd3 .nr-faq details {
  background: #fff; border: 1px solid var(--nr-line); padding: 0 clamp(.85rem, 2vw, 1.2rem);
}
#nrd3 .nr-faq summary {
  cursor: pointer; list-style: none; padding: 16px 0;
  font-size: 1.02rem; font-weight: 600; color: var(--nr-ink); line-height: 1.45;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
#nrd3 .nr-faq summary::-webkit-details-marker { display: none; }
#nrd3 .nr-faq summary::after { content: "+"; color: var(--nr-accent); font-size: 20px; font-weight: 400; flex: 0 0 auto; }
#nrd3 .nr-faq details[open] summary::after { content: "\2013"; }
#nrd3 .nr-faq .ans { padding: 0 0 18px; font-size: .95rem; color: var(--nr-body); line-height: 1.8; }

/* ------------------------------ 相关产品 ------------------------------ */
#nrd3 .nr-rel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.4rem); }
#nrd3 .nr-card {
  background: #fff; border: 1px solid var(--nr-line);
  display: flex; flex-direction: column; overflow: hidden;
  transition: border-color .16s;
}
#nrd3 .nr-card:hover { border-color: var(--nr-accent); }
#nrd3 .nr-card .ph { aspect-ratio: 1; background: #fff; display: flex; align-items: center; justify-content: center; padding: 12px; }
#nrd3 .nr-card .ph img { max-width: 82%; max-height: 82%; object-fit: contain; }
#nrd3 .nr-card .bd { padding: 12px 14px 16px; }
#nrd3 .nr-card .tt {
  font-size: .92rem; color: var(--nr-ink); line-height: 1.5; font-weight: 500;
  min-height: 42px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
#nrd3 .nr-card .mm { font-size: .8rem; color: var(--nr-muted); margin-top: 8px; }

/* ------------------------------ 联系区（dd3 的 exportas-contact） ------------------------------ */
#nrd3 .nr-contact {
  position: relative; isolation: isolate; color: #fff;
  background-color: var(--nr-ink);
  background-image: linear-gradient(90deg, rgba(18, 35, 61, .90), rgba(18, 35, 61, .62)),
                    url('/_assets/noray/hero/hero-noray.jpg');
  background-position: 50% 50%; background-size: cover; background-repeat: no-repeat;
  padding: clamp(2.4rem, 6vw, 4rem) 0;
}
#nrd3 .nr-contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px; align-items: center;
}
#nrd3 .nr-contact h2 { margin: 0 0 .5rem; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; color: #fff; }
#nrd3 .nr-contact p { margin: 0; font-size: 1rem; line-height: 1.7; color: rgba(255, 255, 255, .88); }
#nrd3 .nr-contact .nr-btn { background: #fff; color: var(--nr-ink); }
#nrd3 .nr-contact .nr-btn:hover { background: var(--nr-accent); color: #fff; }

/* ------------------------------ 询价表单 ------------------------------ */
#nrd3 .nr-quote { padding: clamp(2rem, 5vw, 3.4rem) 0; background: #fff; }
#nrd3 .nr-quote-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
#nrd3 .nr-quote h2 { color: var(--nr-ink); margin: 0 0 .6rem; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; line-height: 1.2; }
#nrd3 .nr-quote p { margin: 0 0 1rem; font-size: 1rem; line-height: 1.75; }
#nrd3 .nr-quote ul { margin: 0; padding-left: 20px; font-size: .95rem; color: var(--nr-muted); line-height: 1.95; list-style: disc outside; }
#nrd3 .nr-form {
  background: #fff; border: 1px solid var(--nr-line);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px;
  padding: clamp(1rem, 2.4vw, 1.5rem);
}
#nrd3 .nr-form .full { grid-column: 1 / -1; }
#nrd3 .nr-form label { font-size: .82rem; color: var(--nr-muted); display: block; margin-bottom: 6px; }
#nrd3 .nr-form input, #nrd3 .nr-form textarea {
  width: 100%; border: 1px solid #dfe4e9; border-radius: 6px;
  padding: 11px 13px; font-size: .95rem; font-family: inherit;
  color: var(--nr-ink); outline: none; background: #fff;
}
#nrd3 .nr-form input:focus, #nrd3 .nr-form textarea:focus { border-color: var(--nr-accent); }
#nrd3 .nr-form textarea { resize: vertical; min-height: 74px; }
#nrd3 .nr-form .nr-btn { grid-column: 1 / -1; height: 48px; margin-top: 4px; }
#nrd3 .nr-form .nr-msg { grid-column: 1 / -1; font-size: .85rem; line-height: 1.6; display: none; }
#nrd3 .nr-form .nr-msg.err { display: block; color: #c0392b; }
#nrd3 .nr-form .nr-msg.ok { display: block; color: #1e7d4f; }

/* ------------------------------ 手机吸底 CTA ------------------------------ */
#nrd3 .nr-sticky { display: none; }
@media (max-width: 640px) {
  #nrd3 .nr-sticky {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--nr-line);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    gap: 10px; box-shadow: 0 -4px 16px rgba(18, 35, 61, .06);
  }
  #nrd3 .nr-sticky .nr-btn { flex: 1; min-width: 0; min-height: 44px; font-size: .92rem; }
  #nrd3 .nr-sticky .nr-st-ic {
    flex: 0 0 44px; height: 44px; border-radius: 8px;
    border: 1px solid var(--nr-line); background: #fff;
    display: flex; align-items: center; justify-content: center; color: #25d366;
  }
  #nrd3 .nr-sticky .nr-st-ic svg { width: 22px; height: 22px; fill: currentColor; }
  body { padding-bottom: 66px; }
  /* 窄屏右侧悬浮球会压住标题，收起来；WhatsApp 移到吸底条最左 */
  #noray-fab { display: none !important; }
}

/* ------------------------------ 响应式 ------------------------------ */
@media (max-width: 980px) {
  #nrd3 .nr-mat-grid { grid-template-columns: 1fr; gap: 28px; }
  #nrd3 .nr-copy { max-width: none; }
  #nrd3 .nr-grid.three-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #nrd3 .nr-rel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #nrd3 .nr-quote-grid { grid-template-columns: 1fr; }
  #nrd3 .nr-trust .in { flex-wrap: wrap; gap: 20px 36px; }
  #nrd3 .nr-trust .it { white-space: normal; }
}
@media (max-width: 640px) {
  #nrd3 .nr-shell { width: min(1224px, 100% - 1.6rem); }
  #nrd3 .nr-grid, #nrd3 .nr-grid.three-cols, #nrd3 .nr-faq, #nrd3 .nr-rel { grid-template-columns: 1fr; }
  #nrd3 .nr-form { grid-template-columns: 1fr; }
  #nrd3 .nr-contact-grid { grid-template-columns: 1fr; }
  #nrd3 .nr-copy h1 > span { font-size: 2rem; }
}


/* ============ 缩略图条（2026-11-01 index15 新增）============
   方案稿《详情页改版方案-预览.html》.thumbs 的 V3 版实现：
   横向可滚动一排，1:1 缩略图，选中态品牌橙描边 + 2px 外发光。
   图量最大 20 张，用横向滚动而不是 5 列固定网格，避免把首屏顶开。 */
#nrd3 .nr-thumbs {
  display: flex; gap: 8px; align-items: center;
  overflow-x: auto; overflow-y: hidden;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--nr-line) transparent;
  -webkit-overflow-scrolling: touch;
}
#nrd3 .nr-thumbs::-webkit-scrollbar { height: 6px; }
#nrd3 .nr-thumbs::-webkit-scrollbar-track { background: transparent; }
#nrd3 .nr-thumbs::-webkit-scrollbar-thumb {
  background: var(--nr-line); border-radius: 3px;
}
#nrd3 .nr-thumb {
  flex: 0 0 auto; width: 88px; height: 88px;
  padding: 0; margin: 0; border: 1px solid var(--nr-line);
  border-radius: 10px; background: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; transition: border-color .16s, box-shadow .16s;
}
#nrd3 .nr-thumb img {
  max-width: 88%; max-height: 88%; object-fit: contain; display: block;
}
#nrd3 .nr-thumb:hover { border-color: var(--nr-accent); }
#nrd3 .nr-thumb.on {
  border-color: var(--nr-accent);
  box-shadow: 0 0 0 2px rgba(229, 135, 34, .16);
}
#nrd3 .nr-thumb:focus-visible {
  outline: 2px solid var(--nr-accent); outline-offset: 2px;
}
@media (max-width: 640px) {
  #nrd3 .nr-thumb { width: 70px; height: 70px; border-radius: 8px; }
}
