/* 产品二级页样式 · 与官网白蓝主题一致 */
.crumb { padding: 20px 0 0; font-size: 13px; color: var(--muted); }
.crumb a:hover { color: var(--primary); }
.crumb span { margin: 0 8px; opacity: .5; }

.detail-hero { padding: 26px 0 60px; }
.detail-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 46px; align-items: start; }
.detail-main-img {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--primary-soft);
  border: 1px solid var(--line); aspect-ratio: 4 / 3; cursor: zoom-in;
}
.detail-main-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .22s ease; }
.detail-main-img.placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--primary); }
.detail-main-img.placeholder svg { width: 46px; height: 46px; opacity: .7; }
.detail-main-img.placeholder span { font-size: 14px; }
.detail-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 12px; }
.detail-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; transition: .18s; }
.detail-thumbs img:hover, .detail-thumbs img.active { border-color: var(--primary); }
.detail-tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.detail-info h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 6px; }
.detail-en { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.detail-lead { font-size: 16px; color: var(--muted); line-height: 1.85; }
.detail-feats { list-style: none; padding: 0; margin: 22px 0 26px; }
.detail-feats li { position: relative; padding-left: 22px; margin-bottom: 9px; font-size: 15px; }
.detail-feats li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.detail-note { margin-top: 20px; padding: 14px 16px; background: var(--bg-alt); border-left: 3px solid var(--primary); border-radius: 0 8px 8px 0; font-size: 13px; color: var(--muted); }

.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.spec-table th, .spec-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.spec-table thead th { background: var(--primary); color: #fff; font-weight: 600; }
.spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.spec-table td:first-child { font-weight: 600; color: var(--primary); white-space: nowrap; }

.note-box { margin-top: 24px; padding: 18px 20px; background: var(--primary-soft); border-radius: var(--radius); font-size: 14px; line-height: 1.8; }
.note-box strong { color: var(--primary); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; cursor: zoom-in; transition: .18s; }
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gallery-item figcaption { padding: 10px 12px; font-size: 13px; color: var(--muted); }

.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rel-card { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: .18s; }
.rel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }
.rel-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--primary-soft); }
.rel-card .rel-body { padding: 16px 18px; }
.rel-card h3 { font-size: 16px; margin: 0 0 4px; }
.rel-card p { font-size: 13px; color: var(--muted); margin: 0; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 18, 32, .9); display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 8px; }
.lightbox button { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--primary); font-size: 28px; cursor: pointer; }
.lightbox .lb-prev { left: 24px; }
.lightbox .lb-next { right: 24px; }
.lightbox .lb-close { top: 20px; right: 24px; transform: none; font-size: 22px; }
.lightbox .lb-count { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; }

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; gap: 26px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .rel-grid { grid-template-columns: 1fr; }
  .detail-thumbs { grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .spec-table th, .spec-table td { padding: 12px 10px; font-size: 14px; }
  .lightbox { padding: 16px; }
  .lightbox .lb-prev { left: 8px; }
  .lightbox .lb-next { right: 8px; }
}
