/* ============================================================
   产品中心页样式（/products/** 及 /{en,ja,ko,de,fr,es}/products/**）
   完全复用 styles.css 的 .topbar / .header / .nav / .lang-switch / .footer
   与色彩、字体、按钮、阴影体系，确保与官网首页无缝一体。
   ============================================================ */

.pdp-body{background:var(--bg);color:var(--ink)}
html[lang="ja"] .pdp-body{font-family:'Noto Sans JP','Hiragino Sans','Yu Gothic',var(--sans)}
html[lang="ko"] .pdp-body{font-family:'Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',var(--sans)}
html[lang="en"] .pdp-body,
html[lang="de"] .pdp-body,
html[lang="fr"] .pdp-body,
html[lang="es"] .pdp-body{font-family:'Helvetica Neue',Arial,var(--sans)}

/* ---------- 导航与顶栏适配 ---------- */
/* 当前激活导航项（产品中心）保持橙色下划线指示 */
.nav-menu a.is-active::after{transform:scaleX(1)}

/* 详情页顶部为白底，直接采用与首页滚动后一致的白底毛玻璃顶栏 */
.header.pdp-header-solid{
  position:sticky;top:0;background:rgba(255,255,255,.96);
  backdrop-filter:blur(12px);box-shadow:0 6px 24px -16px rgba(11,39,64,.22);
  border-bottom:1px solid var(--line);
}
.header.pdp-header-solid .nav{height:72px}
.header.pdp-header-solid .nav-logo img{height:44px}
.header.pdp-header-solid .nav-menu a{color:var(--ink)}
.header.pdp-header-solid .nav-cta{color:#fff !important}
.header.pdp-header-solid .nav-toggle span{background:var(--ink)}
.header.pdp-header-solid .lang-switch{border-left-color:var(--line)}
.header.pdp-header-solid .lang-trigger{color:var(--ink)}
.header.pdp-header-solid .lang-trigger:hover{background:var(--bg-soft)}

/* 透明顶栏在总页/分类页滚动后切白底（同步切换深浅两套 logo） */
.nav-logo .logo-dark{display:none}
.header.scrolled .nav-logo .logo-light,
.header.pdp-header-solid .nav-logo .logo-light{display:none}
.header.scrolled .nav-logo .logo-dark,
.header.pdp-header-solid .nav-logo .logo-dark{display:block}

/* 纯 HTML <details> 复用首页 .lang-switch 视觉 */
.pdp-lang-details{position:relative}
.pdp-lang-details summary{list-style:none}
.pdp-lang-details summary::-webkit-details-marker{display:none}
.pdp-lang-details[open] .lang-caret{transform:rotate(180deg)}
.pdp-lang-details[open] .lang-menu{opacity:1;visibility:visible;transform:none}
.pdp-lang-details .lang-opt{text-decoration:none}

/* ---------- 总页 & 分类页 Hero（复用首页深蓝渐变 + 光晕 + 三件套线稿动效） ---------- */
.pdp-hero{
  position:relative;overflow:hidden;color:#fff;
  padding:164px 0 96px;min-height:480px;
  display:flex;align-items:center;
  background:linear-gradient(120deg,#081c30 0%,#0d3056 42%,#12477E 74%,#1d63a8 130%);
}
.pdp-hero::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(circle at 84% 18%,rgba(255,122,26,.26),transparent 42%),
            radial-gradient(circle at 10% 88%,rgba(46,120,192,.48),transparent 52%);
}
.pdp-hero-deco{position:absolute;inset:0;pointer-events:none;overflow:hidden;-webkit-user-select:none;user-select:none}
.pdp-hero-deco img{position:absolute;object-fit:contain;filter:drop-shadow(0 0 18px rgba(255,255,255,.08))}
.pdp-hero-deco .deco-1{--op:.11;--rot:4deg;--ex:26px;--ey:-16px;--fy:-6px;right:2%;top:10%;width:clamp(260px,26vw,430px);opacity:var(--op);transform:rotate(var(--rot))}
.pdp-hero-deco .deco-2{--op:.13;--rot:-8deg;--ex:20px;--ey:22px;--fy:7px;right:21%;bottom:-6%;width:clamp(210px,21vw,340px);opacity:var(--op);transform:rotate(var(--rot))}
.pdp-hero-deco .deco-3{--op:.07;--rot:-11deg;--ex:-24px;--ey:12px;--fy:-5px;left:4%;top:22%;width:clamp(170px,16vw,250px);opacity:var(--op);transform:rotate(var(--rot))}
.pdp-hero .wrap{position:relative;z-index:2;width:100%}
.pdp-hero .pdp-crumb{color:rgba(255,255,255,.72);margin-bottom:20px}
.pdp-hero .pdp-crumb a{color:rgba(255,255,255,.78)}
.pdp-hero .pdp-crumb a:hover{color:#fff}
.pdp-hero .pdp-crumb [aria-current]{color:#fff}
.pdp-hero .eyebrow{color:#ffc89a;margin-bottom:14px}
.pdp-hero h1{font-family:var(--serif);font-size:clamp(30px,4vw,46px);font-weight:800;line-height:1.2;letter-spacing:1px}
.pdp-hero .pdp-lead{color:rgba(255,255,255,.88);margin-top:18px;max-width:740px;font-size:17.5px;line-height:1.8;font-weight:400;letter-spacing:0}

/* 分类快速跳转胶囊：与首页 .hero-tags 一致，下移拉开呼吸感 */
.pdp-pills{display:flex;flex-wrap:wrap;gap:12px;margin-top:48px}
.pdp-pill{
  display:inline-flex;align-items:center;gap:7px;padding:10px 22px;border-radius:50px;
  font-size:15.5px;font-weight:600;color:#fff;backdrop-filter:blur(4px);
  background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.32);
  transition:background-color .25s,border-color .25s,transform .25s,box-shadow .25s;
}
.pdp-pill:hover{background:rgba(255,122,26,.22);border-color:rgba(255,168,102,.9);transform:translateY(-2px);
  box-shadow:0 8px 22px -14px rgba(255,122,26,.9)}
.pdp-pill.is-active{background:var(--orange);border-color:var(--orange);color:#fff;
  box-shadow:0 10px 22px -10px rgba(255,122,26,.7)}
.pdp-pill small{font-size:12px;opacity:.88;font-weight:500}

/* ---------- 主体与分组节奏（scroll-margin-top 精确等于滚动后顶栏高度 68px，无缝贴齐零露白） ---------- */
.pdp{padding:42px 0 96px}
.pdp-band{padding:84px 0;background:var(--bg);scroll-margin-top:68px}
.pdp-band--alt{background:var(--bg-soft)}

/* ---------- 首次展现与滚动入场动效（与首页一致的克制优雅节奏） ---------- */
@keyframes pdpFadeUp{
  from{opacity:0;transform:translateY(22px)}
  to{opacity:1;transform:translateY(0)}
}
@keyframes pdpDecoIn{
  from{opacity:0;transform:translate(var(--ex),var(--ey)) scale(.96) rotate(var(--rot))}
  to{opacity:var(--op);transform:translate(0,0) scale(1) rotate(var(--rot))}
}
@keyframes pdpDecoFloat{
  from{transform:translate3d(0,0,0) rotate(var(--rot))}
  to{transform:translate3d(0,var(--fy),0) rotate(var(--rot))}
}
.pdp-hero h1{animation:pdpFadeUp .72s cubic-bezier(.22,.61,.2,1) .04s both}
.pdp-hero .pdp-lead{animation:pdpFadeUp .75s cubic-bezier(.22,.61,.2,1) .16s both}
.pdp-hero .pdp-pills{animation:pdpFadeUp .78s cubic-bezier(.22,.61,.2,1) .28s both}
.pdp-hero-deco .deco-1{animation:pdpDecoIn 1.1s cubic-bezier(.22,.61,.2,1) .1s both,pdpDecoFloat 6.8s ease-in-out 1.2s infinite alternate}
.pdp-hero-deco .deco-2{animation:pdpDecoIn 1.1s cubic-bezier(.22,.61,.2,1) .28s both,pdpDecoFloat 7.6s ease-in-out 1.38s infinite alternate}
.pdp-hero-deco .deco-3{animation:pdpDecoIn 1.1s cubic-bezier(.22,.61,.2,1) 0s both,pdpDecoFloat 7.2s ease-in-out 1.1s infinite alternate}
.pdp-overview .pdp-fig{animation:pdpFadeUp .7s cubic-bezier(.22,.61,.2,1) .04s both}
.pdp-overview .pdp-overview-info{animation:pdpFadeUp .72s cubic-bezier(.22,.61,.2,1) .14s both}

/* 滚动入场：仅在 html.js 下生效，确保无 JS 环境内容立即可见 */
html.js .pdp-rv{opacity:0;transform:translateY(22px);
  transition:opacity .62s cubic-bezier(.22,.61,.2,1),transform .62s cubic-bezier(.22,.61,.2,1)}
html.js .pdp-rv.in{opacity:1;transform:none}
html.js .pdp-card.pdp-rv:nth-child(4n+2){transition-delay:.06s}
html.js .pdp-card.pdp-rv:nth-child(4n+3){transition-delay:.12s}
html.js .pdp-card.pdp-rv:nth-child(4n+4){transition-delay:.18s}

@media(prefers-reduced-motion:reduce){
  .pdp-hero h1,.pdp-hero .pdp-lead,.pdp-hero .pdp-pills,
  .pdp-hero-deco img,.pdp-overview .pdp-fig,.pdp-overview .pdp-overview-info{animation:none !important}
  html.js .pdp-rv{opacity:1;transform:none;transition:none}
}

/* 面包屑 */
.pdp-crumb{font-size:13.5px;color:var(--gray);margin-bottom:22px;display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.pdp-crumb a{color:var(--gray);transition:color .2s}
.pdp-crumb a:hover{color:var(--orange)}
.pdp-crumb i{font-style:normal;opacity:.5}
.pdp-crumb [aria-current]{color:var(--ink);font-weight:600}

/* 板块标题行 */
.pdp-sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:30px;flex-wrap:wrap}
.pdp-sec-head h2{font-family:var(--serif);font-size:clamp(22px,2.5vw,30px);font-weight:800;
  line-height:1.25;color:var(--navy);padding-left:14px;border-left:4px solid var(--orange)}
.pdp-sec-head h2 small{font-weight:500;font-size:14px;color:var(--gray);margin-left:10px;font-family:var(--sans)}
.pdp-sec-head h2 a{color:inherit;transition:color .2s}
.pdp-sec-head h2 a:hover{color:var(--blue)}
.pdp-more{font-size:14.5px;font-weight:700;color:var(--blue);white-space:nowrap;transition:color .2s}
.pdp-more:hover{color:var(--orange)}

/* ---------- 产品卡片网格（透明抠图悬浮于柔和棚拍浅灰蓝底） ---------- */
.pdp-grid{list-style:none;display:grid;gap:22px;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.pdp-card a{
  display:flex;flex-direction:column;height:100%;background:#fff;
  border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;
  transition:transform .28s,box-shadow .28s,border-color .28s;
}
.pdp-card a:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:rgba(18,71,126,.28)}
.pdp-card-img{
  display:flex;align-items:center;justify-content:center;aspect-ratio:4/3;
  background:radial-gradient(circle at 50% 44%,#ffffff 0%,#eef3f9 100%);
  border-bottom:1px solid var(--line);overflow:hidden;
}
.pdp-card-img img{
  width:100%;height:100%;object-fit:contain;display:block;
  filter:drop-shadow(0 8px 14px rgba(11,39,64,.10));
  transition:transform .35s cubic-bezier(.2,.7,.2,1);
}
.pdp-placeholder{
  width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;
  color:var(--blue);opacity:.72;padding:18px;text-align:center;
}
.pdp-placeholder svg{width:46px;height:46px;stroke:currentColor;fill:none;stroke-width:1.4;opacity:.65}
.pdp-placeholder span{font-size:12.5px;font-weight:600;color:var(--gray)}
.pdp-rel-thumb .pdp-placeholder{padding:0;gap:0}
.pdp-rel-thumb .pdp-placeholder svg{width:22px;height:22px}
.pdp-rel-thumb .pdp-placeholder span{display:none}
.pdp-card a:hover .pdp-card-img img{transform:scale(1.04)}
.pdp-card-body{display:flex;flex-direction:column;flex:1;padding:18px 18px 20px}
.pdp-card-body b{display:block;font-size:16px;font-weight:700;line-height:1.45;margin-bottom:8px;color:var(--navy)}
.pdp-card-body i{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
  font-style:normal;font-size:13.5px;line-height:1.68;color:var(--gray)}
.pdp-card-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;padding-top:12px}
.pdp-card-tag{font-size:12px;font-weight:600;color:var(--blue);background:var(--blue-soft);
  padding:3px 10px;border-radius:999px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ---------- 详情页：顶部双栏概览 + 详情参数 + 侧栏相关产品 ---------- */
.pdp-overview{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:44px;
  align-items:center;padding-bottom:40px;border-bottom:1px solid var(--line)}
.pdp-fig{
  margin:0;border-radius:16px;overflow:hidden;border:1px solid var(--line);
  background:radial-gradient(circle at 50% 44%,#ffffff 0%,#eef3f9 100%);
  box-shadow:var(--shadow-sm);aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;
}
.pdp-fig img{width:100%;height:100%;object-fit:contain;display:block;
  filter:drop-shadow(0 12px 22px rgba(11,39,64,.12))}
.pdp-overview-info{min-width:0}
.pdp-fam{font-size:13.5px;margin-bottom:12px}
.pdp-fam a{display:inline-flex;align-items:center;padding:5px 14px;border-radius:999px;
  background:var(--orange-soft);color:var(--orange-deep);font-weight:700;transition:background .2s,color .2s}
.pdp-fam a:hover{background:var(--orange);color:#fff}
.pdp-overview-info h1{font-family:var(--serif);font-size:clamp(26px,3.1vw,38px);font-weight:800;
  line-height:1.25;letter-spacing:.3px;color:var(--navy)}
.pdp-lead{margin-top:16px;font-size:16.5px;line-height:1.9;color:var(--ink-2)}
.pdp-overview-actions{margin-top:26px;display:flex;flex-wrap:wrap;gap:13px}
.pdp-overview-actions .btn{padding:13px 26px;font-size:15.5px}

.pdp-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:44px;align-items:start;margin-top:38px}
.pdp-main{min-width:0}
.pdp-sec{margin-top:40px}
.pdp-sec:first-child{margin-top:0}
.pdp-sec h2{font-family:var(--serif);font-size:21px;font-weight:800;margin-bottom:18px;
  padding-left:13px;border-left:4px solid var(--orange);line-height:1.3;color:var(--navy)}

.pdp-models{display:flex;flex-wrap:wrap;gap:9px;list-style:none}
.pdp-models li{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13.5px;
  background:var(--bg-soft);border:1px solid var(--line);border-radius:8px;padding:7px 13px;
  letter-spacing:.3px;color:var(--navy);font-weight:600}

.pdp-apps{display:flex;flex-wrap:wrap;gap:9px;list-style:none;margin-top:18px}
.pdp-apps li{font-size:13px;font-weight:600;color:var(--blue);background:var(--blue-soft);
  padding:5px 13px;border-radius:999px}

.pdp-feats{list-style:none;display:grid;gap:12px}
.pdp-feats li{position:relative;padding:13px 16px 13px 34px;line-height:1.8;color:var(--ink-2);
  font-size:15.5px;background:var(--bg-soft);border-radius:10px;border:1px solid var(--line)}
.pdp-feats li::before{content:"";position:absolute;left:15px;top:1.2em;width:7px;height:7px;
  border-radius:50%;background:var(--orange)}

.pdp-specs{width:100%;table-layout:fixed;border-collapse:collapse;border:1px solid var(--line);border-radius:12px;
  overflow:hidden;font-size:14.5px;background:#fff}
.pdp-specs tr{border-top:1px solid var(--line)}
.pdp-specs tr:first-child{border-top:0}
.pdp-specs th{width:32%;text-align:left;padding:13px 16px;background:var(--bg-soft);
  color:var(--navy);font-weight:700;vertical-align:top;border-right:1px solid var(--line);
  overflow-wrap:anywhere}
.pdp-specs td{padding:13px 16px;color:var(--ink-2);line-height:1.7;vertical-align:top;
  overflow-wrap:anywhere;word-break:break-word}

.pdp-cta{background:linear-gradient(135deg,var(--bg-soft),var(--blue-soft));
  border:1px solid var(--line);border-radius:var(--radius);padding:28px 30px}
.pdp-cta h2{border-left:0;padding-left:0;margin-bottom:10px}
.pdp-cta p{color:var(--ink-2);line-height:1.8;font-size:15.5px}
.pdp-actions{margin-top:20px;display:flex;flex-wrap:wrap;gap:12px}
.pdp-actions .btn{padding:12px 24px;font-size:15px}

.pdp-rel{position:sticky;top:94px;background:#fff;border:1px solid var(--line);
  border-radius:var(--radius);padding:20px 18px 10px;box-shadow:var(--shadow-sm)}
.pdp-rel h2{font-family:var(--serif);font-size:17px;font-weight:800;margin-bottom:14px;color:var(--navy)}
.pdp-rel ul{list-style:none}
.pdp-rel li{border-top:1px solid var(--line);padding:11px 0}
.pdp-rel li:first-child{border-top:0;padding-top:0}
.pdp-rel a{display:flex;align-items:center;gap:12px;font-size:14px;line-height:1.5;color:var(--ink);transition:color .2s}
.pdp-rel a:hover{color:var(--orange)}
.pdp-rel-thumb{width:68px;height:51px;flex-shrink:0;border-radius:8px;border:1px solid var(--line);
  background:radial-gradient(circle at 50% 45%,#fff,#eef3f9);overflow:hidden;
  display:flex;align-items:center;justify-content:center}
.pdp-rel-thumb img{width:100%;height:100%;object-fit:contain;display:block}

/* ---------- 响应式（与首页断点对齐） ---------- */
@media(max-width:1020px){
  .pdp-overview{grid-template-columns:minmax(0,1fr);gap:28px}
  .pdp-detail-grid{grid-template-columns:minmax(0,1fr);gap:34px}
  .pdp-rel{position:static}
}
@media(max-width:760px){
  .header.pdp-header-solid .nav{height:60px}
  .header.pdp-header-solid .nav-logo img{height:34px}
  .pdp-hero{padding:102px 0 46px;min-height:0}
  .pdp-band{padding:44px 0;scroll-margin-top:60px}
  .pdp{padding:24px 0 64px}
  .pdp-pills{flex-wrap:wrap;overflow-x:visible;gap:8px;margin-top:18px;margin-inline:0;padding:0}
  .pdp-pill{flex:0 1 auto;white-space:normal;padding:6px 13px;font-size:13px;line-height:1.35}
  .pdp-sec-head{margin-bottom:20px}
  .pdp-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .pdp-card-body{padding:12px 11px 14px}
  .pdp-card-body b{font-size:13.5px;line-height:1.4;margin-bottom:0}
  .pdp-card-body i,.pdp-card-meta{display:none}
  .pdp-overview{gap:22px;padding-bottom:28px}
  .pdp-lead{font-size:15px}
  .pdp-sec{margin-top:30px}
  .pdp-feats li{padding:11px 14px 11px 30px;font-size:14.5px}
  .pdp-feats li::before{left:12px}
  .pdp-specs th{width:36%;padding:10px 11px;font-size:13px}
  .pdp-specs td{padding:10px 11px;font-size:13px}
  .pdp-cta{padding:22px 18px}
  .pdp-overview-actions .btn,.pdp-actions .btn{flex:1 1 100%;justify-content:center}
}
@media(max-width:390px){
  .pdp-pills{gap:7px}
  .pdp-pill{padding:6px 11px;font-size:12.5px}
  .pdp-grid{gap:10px}
  .pdp-card-body{padding:10px 10px 12px}
  .pdp-card-body b{font-size:13px}
}

/* ---------- 阿拉伯语 RTL 镜像适配 ---------- */
html[dir="rtl"] .pdp-hero-deco .deco-1{right:auto;left:2%;transform:rotate(-4deg)}
html[dir="rtl"] .pdp-hero-deco .deco-2{right:auto;left:22%;transform:rotate(8deg)}
html[dir="rtl"] .pdp-sec-head h2,
html[dir="rtl"] .pdp-sec h2{padding-left:0;padding-right:14px;border-left:0;border-right:4px solid var(--orange)}
html[dir="rtl"] .pdp-cta h2{padding-right:0;border-right:0}
html[dir="rtl"] .pdp-feats li{padding:13px 34px 13px 16px}
html[dir="rtl"] .pdp-feats li::before{left:auto;right:15px}
html[dir="rtl"] .pdp-specs th{text-align:right;border-right:0;border-left:1px solid var(--line)}
html[dir="rtl"] .pdp-models li{direction:ltr;unicode-bidi:isolate}
@media(max-width:760px){
  html[dir="rtl"] .pdp-feats li{padding:11px 30px 11px 14px}
  html[dir="rtl"] .pdp-feats li::before{left:auto;right:12px}
}

/* 长词在自身列内换行，不能依赖全页 overflow 截掉德语名称。 */
.pdp-card-body b,.pdp-overview-info h1,.pdp-sec-head h2,.pdp-models li,
.pdp-apps li,.pdp-specs th,.pdp-specs td,.pdp-crumb,.pdp-rel a{overflow-wrap:anywhere;hyphens:auto}
.pdp-specs{table-layout:fixed;width:100%}
html[lang=ar] .pdp-overview-info h1{line-height:1.4}
html[lang=ar] .pdp-crumb{line-height:1.8}
