#product {
  padding: 4rem 2rem;
  box-sizing: border-box;
  background: #0b1220;
  color: #fff;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.2s;
}

/* 容器 */
#product .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* 标题头部 + 动效 */
#product .header {
  text-align: center;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpFade 1s ease forwards;
  animation-delay: 0.5s;
}

#product .header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

#product .header .line {
  width: 60px;
  height: 4px;
  background: #1e88e5;
  margin: 0 auto;
  border-radius: 2px;
}

/* MAJOR PRODUCT 图标展示 */
#product .major-products {
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 1s ease forwards;
  animation-delay: 0.8s;
}

#product .mp-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: bold;
  text-align: center;
}

#product .mp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

#product .mp-item {
  text-align: center;
  opacity: 0;
  transform: scale(0.95);
  animation: fadeScaleUp 0.8s ease forwards;
}
#product .mp-item:nth-child(1) {
  animation-delay: 1s;
}
#product .mp-item:nth-child(2) {
  animation-delay: 1.2s;
}
#product .mp-item:nth-child(3) {
  animation-delay: 1.4s;
}
#product .mp-item:nth-child(4) {
  animation-delay: 1.6s;
}

#product .mp-item img {
  max-width: 100%;
  border-radius: 8px;
  height: auto;
  object-fit: cover;
}

#product .mp-caption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* 产品说明卡片区域 */
#product .grid.cols-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* 产品说明卡片 */
#product .glass.card.prod {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 2rem;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 1s ease forwards;
  animation-delay: 1.9s;
}

#product .prod h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

#product .prod ul.clean {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

#product .prod ul.clean li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  font-size: 1rem;
}

/* major-grid 列表 */
#product .major-grid {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 1s ease forwards;
}
#product .major-grid:nth-of-type(1) {
  animation-delay: 2.2s;
}
#product .major-grid:nth-of-type(2) {
  animation-delay: 2.5s;
}
#product .major-grid:nth-of-type(3) {
  animation-delay: 2.8s;
}

#product .mg-title {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* mg-wrapper 网格 */
#product .mg-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

#product .mg-item {
  background: rgba(255, 255, 255, 0.07);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-align: center;
  font-size: 0.95rem;
}

/* oss-grid */
#product .oss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

#product .oss-item {
  text-align: center;
  opacity: 0;
  transform: scale(0.95);
  animation: fadeScaleUp 0.8s ease forwards;
}
#product .oss-item:nth-child(1) {
  animation-delay: 3s;
}
#product .oss-item:nth-child(2) {
  animation-delay: 3.1s;
}
#product .oss-item:nth-child(3) {
  animation-delay: 3.2s;
}
#product .oss-item:nth-child(4) {
  animation-delay: 3.3s;
}
#product .oss-item:nth-child(5) {
  animation-delay: 3.4s;
}
#product .oss-item:nth-child(6) {
  animation-delay: 3.5s;
}

#product .oss-item img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

#product .oss-caption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* 客户 logo grid */
#product .cs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
  margin-top: 1rem;
}

#product .cs-item img {
  width: 100%;
  max-width: 140px;
  height: auto;
  object-fit: contain;
  filter: brightness(1.1) contrast(1.1);
  opacity: 0;
  transform: scale(0.95);
  animation: fadeScaleUp 0.8s ease forwards;
}
#product .cs-item:nth-child(1) {
  animation-delay: 3.7s;
}
#product .cs-item:nth-child(2) {
  animation-delay: 3.8s;
}
#product .cs-item:nth-child(3) {
  animation-delay: 3.9s;
}
#product .cs-item:nth-child(4) {
  animation-delay: 4s;
}
#product .cs-item:nth-child(5) {
  animation-delay: 4.1s;
}
#product .cs-item:nth-child(6) {
  animation-delay: 4.2s;
}
#product .cs-item:nth-child(7) {
  animation-delay: 4.3s;
}

/* 响应式 */
@media (max-width: 768px) {
  #product .mg-wrapper,
  #product .oss-grid,
  #product .cs-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

/* 动画定义 */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeScaleUp {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
