/* ===============================
   GLOBAL SETTINGS
================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: #333;
}

/* 修正：与 main.css 保持一致，确保 Header 区域背景为黑 */
#site-header {
  min-height: 72px; 
  width: 100%;
  background: #000;
}

/* ===============================
   HERO SECTION (产品详情头部 - 开启分栏)
================================ */
.product-hero {
    background: #ffffff;
    padding: 20px 40px; /* 收紧上下内边距 */
}

/* 使用 Flex 布局实现左右分栏，并收紧间隙 */
.product-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;       /* 开启左右分栏 */
    gap: 40px;          /* 缩小图片与文字描述之间的空隙 */
    align-items: flex-start;
    padding: 20px 0;    /* 缩小内部上下边距 */
}

/* ===============================
   HERO ALIGN FIX
================================ */
.product-hero-top {
  align-items: flex-start;   /* ⬅ 关键：顶部对齐 */
}

/* ===============================
   HERO BULLETS (CHAUVET STYLE)
================================ */
.hero-bullets {
  margin: 12px 0 18px;
  padding-left: 18px;
}

.hero-bullets li {
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 6px;
  color: #222;
}

/* ===============================
   PRODUCT GALLERY (主图控制)
================================ */
/* 限制左侧图片区域宽度，防止主图过大 */
.product-gallery {
    flex: 0 0 400px;    /* 固定左侧宽度为 400px，不被撑大 */
}

.main-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* 保持正方形，适配 300x300 图片 */
    object-fit: contain; /* 确保灯具全身显示，不被切割 */
    padding: 10px;
    border: 1px solid #f0f0f0;
    background: #fff;
}

.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.thumbs img {
  width: 75px;
  height: 75px;
  object-fit: contain;
  border: 1px solid #ddd;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.2s;
}

.thumbs img:hover {
  border-color: #f5a400;
}

.products-hero {
  /* 1. 确保有高度 */
  height: 60vh; /* 或者 500px */
  min-height: 400px;
  
  /* 2. 关键：防止变形的核心代码 */
  background-position: center;
  background-size: cover; /* 让图片等比缩放填满，多余部分裁切，绝不拉伸 */
  background-repeat: no-repeat;
  
  position: relative;
  display: flex;
  align-items: center;
}
/* ===============================
   PRODUCT INFO (右侧描述区域)
================================ */
/* 右侧描述区域自动填充剩余空间 */
.product-info {
    flex: 1;
    padding-top: 10px;
}

.product-info h1 {
  font-size: 32px; 
  line-height: 1.1;
  margin-top: 0;
  margin: 0 0 15px 0;
  font-weight: 700;
  color: #000;
}

.product-tagline {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* ===============================
   SECTIONS – COMMON (收紧区块间距)
================================ */
.product-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px; /* 极简间距 */
    border-top: 1px solid #eee;
}

.product-section:first-of-type {
  border-top: none;
}

.product-section h2 {
  font-size: 22px;
  margin: 0 0 12px 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-section h4 {
  font-size: 15px;
  margin: 12px 0 6px 0;
  font-weight: 700;
  color: #000;
  border-bottom: 1px solid #eee;
  padding-bottom: 4px;
  display: inline-block;
}

.product-section ul {
  margin: 8px 0 8px 18px;
  padding-left: 0;
  list-style: disc;
}

.product-section li {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 3px;
  color: #444;
}

/* ===============================
   SPECIFICATIONS
================================ */
.spec-grid {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.spec-grid > div {
  flex: 1;
}

/* ===============================
   RELATED PRODUCTS (修正显示不完整)
================================ */
.related-products .product-cards {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.product-card {
    flex: 1;
    max-width: 280px;
    text-decoration: none;
}

.product-card img {
    width: 100%;
    aspect-ratio: 1 / 1; /* 强制正方形 */
    object-fit: contain; /* 确保相关产品灯具显示完整 */
    border: 1px solid #eee;
    background: #fdfdfd;
    transition: transform 0.3s, border-color 0.3s;
}

.product-card:hover img {
    transform: translateY(-5px);
    border-color: #f5a400;
}

/* ===============================
   APPLICATION CASE
================================ */
.case-grid {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.case-item {
  flex: 1;
  text-align: center;
}

.case-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover; 
  border: 1px solid #eee;
}

.case-item span, .product-card span {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 992px) {
  .product-hero-inner {
      flex-direction: column;
      gap: 30px;
  }
  .product-gallery {
      flex: none;
      width: 100%;
      max-width: 400px;
      margin: 0 auto;
  }
}
