/* ========== 商品详情页 ========== */
.logo-link {
  text-decoration: none;
}

.product-detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(var(--header-height) + 104px) 32px 60px;
}

.product-detail-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.7s var(--ease-out-expo) forwards;
}

.product-detail-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--light-gray);
  aspect-ratio: 1;
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-image .gallery-main-img {
  cursor: zoom-in;
  display: block;
}

.product-detail-image .gallery-main-img.is-switching,
.image-viewer-img.is-switching {
  animation: galleryImageSwitch .34s ease both;
}

@keyframes galleryImageSwitch {
  from { opacity: .35; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: var(--text-primary);
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  transition: transform .2s ease, background .2s ease;
}

.gallery-arrow::before,
.image-viewer-arrow::before {
  content: "";
  width: 11px;
  height: 11px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  display: block;
}

.gallery-prev::before,
.image-viewer-prev::before {
  transform: translateX(2px) rotate(-135deg);
}

.gallery-next::before,
.image-viewer-next::before {
  transform: translateX(-2px) rotate(45deg);
}

.gallery-arrow:hover {
  background: white;
  transform: translateY(-50%) scale(1.05);
}

.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }

.gallery-count {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  color: var(--text-primary);
  font-size: .8rem;
  font-weight: 600;
}

.gallery-thumbs {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px;
}

.gallery-thumb {
  flex: 0 0 58px;
  width: 58px;
  height: 48px;
  padding: 0;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 8px;
  overflow: hidden;
  background: white;
  cursor: pointer;
  opacity: .78;
}

.gallery-thumb.active {
  border-color: var(--accent);
  opacity: 1;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 15, 20, .86);
  padding: 32px;
}

.image-viewer-overlay.show {
  display: flex;
}

.image-viewer-img {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 28px 80px rgba(0,0,0,.35);
}

.image-viewer-stage {
  position: relative;
  cursor: none;
}

.image-magnifier {
  position: fixed;
  z-index: 20002;
  display: none;
  width: 210px;
  height: 210px;
  border: 3px solid rgba(255,255,255,.95);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 60px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.2);
  background-repeat: no-repeat;
  background-color: #111;
}

.image-magnifier.show {
  display: block;
}

.image-viewer-close,
.image-viewer-arrow {
  position: fixed;
  z-index: 20001;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: var(--text-primary);
  cursor: pointer;
}

.image-viewer-close {
  top: 76px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  line-height: 1;
}

.image-viewer-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  width: 50px;
  height: 50px;
  padding: 0;
  transform: translateY(-50%);
}

.image-viewer-prev { left: 28px; }
.image-viewer-next { right: 28px; }

.product-detail-image .no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.product-detail-name {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.1;
}

.product-detail-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
}

.product-detail-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.quote-btn {
  width: fit-content;
  margin: 0 0 28px;
}

.product-detail-specs h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--light-gray);
}

.specs-table td {
  padding: 12px 4px;
  font-size: 0.9rem;
}

.spec-label {
  color: var(--text-muted);
  width: 40%;
  font-weight: 500;
}

.spec-value {
  color: var(--text-primary);
}

.product-detail-content {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.7s var(--ease-out-expo) 0.2s forwards;
}

.product-detail-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--light-gray);
}
.seo-related{margin-top:42px;padding-top:28px;border-top:1px solid rgba(0,0,0,.08)}.seo-related>h2{font-size:1.2rem;margin:0 0 18px}.seo-related .products-grid{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:800px){.seo-related .products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.detail-body {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.detail-body img {
  max-width: 100%;
  border-radius: 12px;
  margin: 16px 0;
}

.detail-body p {
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .product-detail-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .product-detail-name {
    font-size: 1.75rem;
  }
  .product-detail {
    padding: calc(var(--header-height) + 96px) 20px 40px;
  }
  .quote-btn {
    width: 100%;
    justify-content: center;
  }
}
