/* ==========================================================================
   通用产品详情页样式（恢复）
   ========================================================================== */

.product-detail-section {
  padding: 40px 0 80px;
  background: #fff;
}

.product-detail-container {
  width: 1240px;
  max-width: 1240px;
  margin: 0 auto;
}

.product-top {
  margin-bottom: 50px;
}

.product-top-header h1 {
  margin: 0 0 20px;
  font-size: 34px;
  line-height: 1.35;
  color: #1f2125;
  font-weight: 700;
}

.product-top-desc {
  color: #666;
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 24px;
}

.product-top-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.product-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.product-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}

.product-list-item:nth-child(even) {
  flex-direction: row-reverse;
}

.product-list-text,
.product-list-image {
  flex: 1;
}

.product-list-title {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.4;
  color: #1f2125;
  font-weight: 700;
}

.product-list-desc {
  color: #666;
  font-size: 16px;
  line-height: 1.9;
}

.product-list-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.product-full-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   加速度传感器系列专属样式
   ========================================================================== */

/* 顶部标题 */
.sensor-page-header {
  text-align: center;
  margin-top: 80px;
  margin-bottom: 50px;
  position: relative;
}

.sensor-page-header h1 {
  font-size: 34px;
  color: #000;
  font-weight: bold;
  margin: 0;
  padding-bottom: 15px;
  display: inline-block;
  position: relative;
}

.sensor-page-header h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 4px;
  background-color: #008DBB;
}

/* 切换菜单 */
.sensor-tabs {
  text-align: center;
  margin-bottom: 40px;
  font-size: 0; /* 消除 inline-block 间隙 */
}

.sensor-tab {
  font-size: 16px;
  padding: 10px 20px;
  display: inline-block;
  vertical-align: middle;
  text-transform: capitalize;
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  background-color: #fff;
  color: #000;
  margin: 0 10px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.sensor-tab.active {
  background-color: #008DBB;
  color: #fff;
}

.sensor-tab:hover:not(.active) {
  border-color: #008DBB;
  color: #008DBB;
}

/* 列表容器 */
.sensor-content-wrapper {
  position: relative;
  padding-bottom: 60px; /* 增加底部内边距，防止与 footer 重叠 */
}

.sensor-list {
  display: none;
  grid-template-columns: repeat(4, 260px);
  gap: 30px 40px; /* 间距可根据 1240px 容器微调 */
  justify-content: center;
}

.sensor-list.active {
  display: grid;
}

/* 卡片布局 */
.sensor-card {
  width: 260px;
  height: 425px;
  box-sizing: border-box;
  position: relative;
}

.sensor-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
}

/* 顶部内容区域：包含了图片、标题和参数，它覆盖在背景块之上 */
.sensor-card-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  z-index: 2; /* 确保内容在背景色之上 */
  padding: 10px 20px 20px;
  box-sizing: border-box;
}

/* 图片区域 */
.sensor-card-img {
  width: 220px;
  height: 200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sensor-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 产品名称 */
.sensor-name {
  color: #1F2125;
  font-size: 17px;
  font-weight: bold;
  text-align: center;
  margin-top: 15px; /* 图片和标题之间的间距 */
  margin-bottom: 15px; /* 标题和参数之间的间距 */
}

/* 参数列表 */
.sensor-props {
  display: flex;
  flex-direction: column;
  gap: 2px; /* 添加参数之间的间距 */
}

.prop-item {
  color: #666666;
  font-size: 17px;
  text-align: center;
  margin: 0;
}

/* 动态背景区域（抽屉） */
.sensor-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 310px; /* 增加默认高度，让背景包住大部分图片 */
  background-color: #F5F7FA;
  border-radius: 20px;
  z-index: 0; /* 在内容下方 */
  transition: all 0.3s ease; /* 高度变化的平滑过渡 */
}

.sensor-card:hover .sensor-card-info {
  height: 425px; /* 悬浮时背景向上拉伸，撑满卡片 */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 配套设备及附件 - 底座大图布局 */
.base-image-list {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px !important;
}

.base-image-card {
  width: 100%;
  box-sizing: border-box;
}

.base-image-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
