.detail-wrapper {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: 'Noto Sans TC', sans-serif;
}

.detail-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 24px;
  color: #2e7d32;
  text-align: center;
}

.detail-main {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}

.detail-image {
  flex: 1 1 300px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.image-link {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.image-link img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.image-link:hover img {
  transform: scale(1.03);
}

.image-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-link:hover::after {
  opacity: 1;
}

.hover-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* background: rgba(0, 0, 0, 0.5); */
  color: #fff;
  padding: 16px;
  border-radius: 50%;
  font-size: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.image-link:hover .hover-icon {
  opacity: 1;
}

.detail-info {
  flex: 2 1 400px;
}

.info-item {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.table-title {
  font-size: 20px;
  margin-bottom: 12px;
  color: #333;
  border-bottom: 2px solid #ccc;
  padding-bottom: 6px;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 60px;
}

.detail-table th,
.detail-table td {
  border: 1px solid #ccc;
  padding: 10px 12px;
  font-size: 15px;
  text-align: left;
}

.detail-table th {
  background-color: #f5f5f5;
  font-weight: bold;
}

/* 強制 lightbox 圖片最大尺寸限制 */
.lightbox .lb-image {
  max-width: 100vw !important;
  max-height: 100vh !important;
  object-fit: contain;
}

/* 響應式 */
@media (max-width: 768px) {
  .detail-main {
    flex-direction: column;
  }

  .detail-image,
  .detail-info {
    flex: 1 1 100%;
  }

  .detail-title {
    font-size: 22px;
  }

  .table-title {
    font-size: 18px;
  }
}
