body { background: #fff; }
.series-detail-container { padding: 24px 0; }

/* 面包屑 */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; font-size: 14px; }
.breadcrumb a { color: #3b82f6; text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: #2563eb; text-decoration: underline; }
.breadcrumb-sep { color: #9ca3af; font-size: 10px; }
.breadcrumb-current { color: #6b7280; font-weight: 500; }

/* 标题 */
.series-title { margin: 0 0 24px; color: #1f2937; font-size: 28px; }

/* 完整展示产品和图片原有背景，不裁切缩略图。 */
.series-detail-container .image-thumbnail,
.series-detail-container .series-band-image img { object-fit: contain; }

/* deferred:start */
/* 灯箱的媒体区与说明区各占一行，长说明在自己的区域内滚动。 */
.series-detail-container .lightbox {
  height: 100dvh;
  box-sizing: border-box;
  padding: 72px 80px 24px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
}
.series-detail-container .lightbox.active { display: grid; }
.series-detail-container .lightbox-content {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  justify-content: center;
  overflow: hidden;
}
.series-detail-container .lightbox-image,
.series-detail-container .lightbox-blur,
.series-detail-container .lightbox-video,
.series-detail-container .lightbox-iframe {
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
}
.series-detail-container .lightbox-blur { z-index: -1; }
.series-detail-container .lightbox-video { max-width: min(100%, 960px); }
.series-detail-container .lightbox-iframe { width: min(100%, 960px); }
.series-detail-container .lightbox-caption {
  position: static;
  transform: none;
  justify-self: center;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  max-height: 25vh;
  max-height: 25dvh;
  margin: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .series-detail-container .lightbox { padding: 64px 52px 16px; gap: 12px; }
  .series-detail-container .lightbox-close { top: 12px; right: 8px; }
  .series-detail-container .lightbox-nav { width: 36px; height: 36px; font-size: 18px; }
  .series-detail-container .lightbox-prev { left: 8px; }
  .series-detail-container .lightbox-next { right: 8px; }
  .series-detail-container .lightbox-caption { padding: 6px 10px; font-size: 14px; }
}
/* deferred:end */

/* CKEditor 表格滚动包装层 */
.ck-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 12px 0;
}
.ck-table-scroll::-webkit-scrollbar { height: 8px; }
.ck-table-scroll::-webkit-scrollbar-track { background: #eef2f7; border-radius: 999px; }
.ck-table-scroll::-webkit-scrollbar-thumb { background: #c4ced9; border-radius: 999px; }
.ck-table-scroll::-webkit-scrollbar-thumb:hover { background: #aeb9c6; }
.ck-table-scroll table { margin: 0; }

/* CKEditor 渲染内容 */
.ck-content { line-height: 1.8; word-break: break-word; font-size: 14px; }
.ck-content img { display: inline-block; max-width: 100%; height: auto !important; border-radius: 6px; vertical-align: top; margin: 2px 0; }
/* p 内多图 gallery */
.ck-content p:has(img + img) img { max-width: 48%; }
.ck-content p:has(img + img + img) img { max-width: 32%; }
.ck-content figure { display: inline-block; }
.ck-content figcaption { text-align: center; }
.ck-content table { width: max-content; border-collapse: collapse; margin: 0; }
.ck-content table td, .ck-content table th { border: 1px solid #e5e7eb; padding: 6px 12px; font-size: 12px; max-width: 600px; overflow-wrap: anywhere; }
.ck-content table th { background: #f9fafb; font-weight: 600; }
.ck-content a { color: #3b82f6; }
.ck-content a:hover { text-decoration: underline; }
.ck-content h1, .ck-content h2, .ck-content h3, .ck-content h4 { color: #374151; }
.ck-content ul { margin-top: 0; }
.ck-content h3 { margin-top: 12px; font-size: 16px; }
.ck-content h4 { margin: 8px 0 0; font-size: 14px; }

/* Part Number table */
.pn-table-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.pn-table-scroll::-webkit-scrollbar { height: 8px; }
.pn-table-scroll::-webkit-scrollbar-track { background: #eef2f7; border-radius: 999px; }
.pn-table-scroll::-webkit-scrollbar-thumb { background: #c4ced9; border-radius: 999px; }
.pn-table-scroll::-webkit-scrollbar-thumb:hover { background: #aeb9c6; }
.pn-table {
  border-collapse: collapse;
  width: max-content;
  table-layout: fixed;
}
.pn-table th,
.pn-table td {
  border: 1px solid #e5e7eb;
  padding: 12px;
  vertical-align: top;
}
.pn-row-label {
  width: 140px;
  min-width: 140px;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}
.pn-key-cell {
  background: #f9fbff;
  color: #1f2937;
  font-weight: 600;
  white-space: nowrap;
}
.pn-key-cell,
.pn-explain-cell {
  max-width: 400px;
  overflow-wrap: anywhere;
}
.pn-explain-cell {
  color: #1f2937;
}
.pn-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: #2563eb;
  font-weight: 700;
}
.pn-meaning {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
}

/* 文件列表 */
.file-list { list-style: none; margin: 0; padding: 0; }
.file-item { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid #f3f4f6; min-width: 0; }
.file-item:last-child { border-bottom: none; }
.file-icon { color: #ef4444; font-size: 20px; margin-right: 12px; flex-shrink: 0; }
.file-link { color: #3b82f6; text-decoration: none; font-size: 16px; overflow-wrap: anywhere; min-width: 0; }
.file-link:hover { text-decoration: underline; color: #2563eb; }

/* 响应式 */
@media (max-width: 480px) {
  .series-title { font-size: 22px; }
  .ck-content table td, .ck-content table th { max-width: 320px; }
  .pn-key-cell, .pn-explain-cell { max-width: 320px; }
}
