/* ================================================
   detail.css — 产品详情页样式
   色调：蓝白色系，与 style.css 保持一致
   主色：#1a73e8
   ================================================ */

/* ---- 页面骨架 ---- */
#pageLoader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  font-size: 1rem;
  color: #888;
}

#productDetail {
  padding-bottom: 60px;
}

/* ---- 面包屑 ---- */
.detail-breadcrumb {
  background: #f8f9fa;
  border-bottom: 1px solid #e8ecf0;
  padding: 12px 0;
}

.detail-breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #666;
}

.detail-breadcrumb a {
  color: #1a73e8;
  text-decoration: none;
}

.detail-breadcrumb a:hover {
  text-decoration: underline;
}

.detail-breadcrumb .sep {
  color: #ccc;
}

.detail-breadcrumb .current {
  color: #333;
  font-weight: 500;
}

/* ================================================
   图片 Gallery 区
   布局：左大图 + 右缩略图纵列
   ================================================ */
.detail-gallery-section {
  background: #fff;
  padding: 40px 0 32px;
  border-bottom: 1px solid #e8ecf0;
}

.detail-gallery-wrap {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 16px;
  align-items: start;
  max-width: 680px;
}

.gallery-main {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #f0f4f8;
  aspect-ratio: 4 / 3;
  max-height: 440px;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}

.gallery-main img.loading {
  opacity: 0;
}

.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 440px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.gallery-thumbs::-webkit-scrollbar {
  width: 4px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

.gallery-thumb {
  width: 88px;
  height: 66px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: #f0f4f8;
  flex-shrink: 0;
  transition: border-color 0.15s;
}

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

.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: #1a73e8;
}

/* 无图片占位 */
.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #aaa;
  font-size: 0.875rem;
}

.gallery-placeholder svg {
  stroke: #ccc;
}

/* ================================================
   产品基本信息 + 套餐区
   布局：左 gallery + 右 info（两列）
   ================================================ */
.detail-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 40px 0;
}

.detail-info-wrap {}

.detail-category-badge {
  display: inline-block;
  background: #e8f0fe;
  color: #1a73e8;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.detail-product-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
  margin: 0 0 14px;
}

.detail-product-desc {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 16px;
}

.detail-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.detail-platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0f4f8;
  color: #444;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 500;
}

/* ---- 套餐价格卡片 ---- */
.detail-packages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.package-card {
  border: 2px solid #e8ecf0;
  border-radius: 12px;
  padding: 24px 20px;
  background: #fff;
  transition: box-shadow 0.2s, border-color 0.2s;
  position: relative;
}

.package-card:hover {
  box-shadow: 0 4px 20px rgba(26, 115, 232, 0.12);
}

.package-card.package-full {
  border-color: #1a73e8;
}

.package-recommend-badge {
  position: absolute;
  top: -1px;
  right: 16px;
  background: #1a73e8;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 0 0 8px 8px;
  letter-spacing: 0.5px;
}

.package-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 12px;
}

.package-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1a73e8;
  margin-bottom: 16px;
  line-height: 1;
}

.package-price span.unit {
  font-size: 1rem;
  font-weight: 600;
  vertical-align: super;
}

.package-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.package-card ul li {
  font-size: 0.875rem;
  color: #555;
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.package-card ul li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1a73e8;
  flex-shrink: 0;
}

.btn-contact {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-radius: 8px;
  background: #1a73e8;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.5px;
}

.btn-contact:hover {
  background: #1558c0;
  transform: translateY(-1px);
}

.btn-contact:active {
  transform: translateY(0);
}

/* ================================================
   核心功能标签区
   ================================================ */
.detail-features-section {
  padding: 40px 0;
  border-top: 1px solid #e8ecf0;
}

.detail-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #1a73e8 0%, transparent 100%);
  border-radius: 1px;
}

.features-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8f0fe;
  color: #1a73e8;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #c5d8fb;
  transition: background 0.15s, color 0.15s;
}

.feature-badge:hover {
  background: #1a73e8;
  color: #fff;
}

/* ================================================
   产品介绍文字区
   ================================================ */
.detail-description-section {
  padding: 40px 0;
  border-top: 1px solid #e8ecf0;
}

.description-content {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.85;
  white-space: pre-wrap;
  max-width: 800px;
}

/* ================================================
   产品展示图区（详情图单列全宽）
   ================================================ */
.detail-images-section {
  padding: 40px 0;
  border-top: 1px solid #e8ecf0;
}

.detail-images-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
}

.detail-images-list img {
  width: 100%;
  border-radius: 10px;
  display: block;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* ================================================
   响应式
   ================================================ */
@media (max-width: 1024px) {
  .detail-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .detail-gallery-wrap {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .detail-product-name {
    font-size: 1.4rem;
  }

  .detail-gallery-wrap {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery-thumbs {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .gallery-thumb {
    width: 72px;
    height: 54px;
  }

  .gallery-main {
    aspect-ratio: 16 / 10;
    max-height: 240px;
  }

  .detail-packages {
    grid-template-columns: 1fr;
  }

  .package-price {
    font-size: 1.5rem;
  }

  .detail-section-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .detail-gallery-section,
  .detail-features-section,
  .detail-description-section,
  .detail-images-section {
    padding: 24px 0;
  }

  .detail-top {
    padding: 24px 0;
  }
}

/* ---- 品牌声明条 ---- */
.brand-statement {
  background: #f5f7fa;
  border-top: 1px solid #e8edf3;
  padding: 12px 0;
  text-align: center;
}

.brand-statement p {
  margin: 0;
  font-size: 0.82rem;
  color: #888;
  line-height: 1.6;
}

.brand-statement strong {
  color: #555;
  font-weight: 600;
}
