/* 覆盖 public.css 的 .content margin-top（详情页无导航栏） */
.content {
  margin-top: 0;
  background: #f5f5f5;
}

/* Banner 区域 */
.m-detail-banner {
  position: relative;
  width: 100%;
  height: 420px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.u-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.u-banner-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
  text-align: center;
}

.u-banner-title {
  font-size: 36px;
  color: #fff;
  font-weight: 700;
}

/* 内容区背景 */
.m-detail-content {
  background: #f5f5f5;
  padding: 48px 114px 0 115px;
}

/* 产品概述区域 */
.m-product-overview {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.u-overview-title {
  width: 896px;
  color: rgba(0, 0, 0, 0.85);
  text-align: center;
  font-family: 'Microsoft YaHei';
  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  line-height: 48px;
}

.u-overview-desc {
  width: 1212px;
  margin-top: 48px;
  color: rgba(0, 0, 0, 0.85);
  text-align: justify;
  font-family: 'PingFang SC';
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 32px;
}

/* 多产品布局 */
.m-detail-products {
  display: flex;
  flex-wrap: wrap;
  row-gap: 26px;
  column-gap: 20px;
  margin-top: 80px;
  padding-bottom: 104px;
  justify-content: flex-start;
}

.m-detail-card {
  width: calc((100% - 20px) / 2);
  height: 326px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.3s;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0px 0px 24px 0px rgba(0, 0, 0, 0.08);
}
.u-card-img-wrap {
  flex: 0 0 234px;
  height: 100%;
  overflow: hidden;
  padding: 22px;
}
.m-detail-card img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.u-card-divider {
  flex: 0 0 1px;
  background: rgba(0, 0, 0, 0.1);
  margin: 28px 0;
}
.u-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 30px;
}
.u-card-name {
  font-family: 'PingFang SC', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.8);
  margin: 0 0 22px 0;
  line-height: 34px;
}
.u-card-desc {
  font-family: 'PingFang SC', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 30px;
  color: rgba(0, 0, 0, 0.85);
  text-align: justify;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 售罄标签 */
.u-sale-out-tag {
  display: inline-block;
  padding: 0 5px;
  width: 54px;
  height: 22px;
  line-height: 22px;
  background: rgba(217, 217, 217, 0.4);
  border-radius: 6px;
  font-family: 'PingFang SC', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.4);
  margin-bottom: 12px;
}

.m-detail-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* 单产品布局 */
.m-detail-single {
  margin-top: 80px;
  padding-bottom: 104px;
  display: flex;
  justify-content: center;
}
.m-single-card {
  width: 1212px;
  height: 572px;
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0px 0px 24px 0px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.3s;
}
.u-single-img-wrap {
  flex: 0 0 476px;
  height: 100%;
  overflow: hidden;
  padding: 50px;
}
.u-single-img-wrap img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.u-single-divider {
  flex: 0 0 2px;
  background: rgba(0, 0, 0, 0.1);
  margin: 56px 0;
}
.u-single-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 30px;
}
.u-single-name {
  font-family: 'PingFang SC', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.8);
  margin: 0 0 24px 0;
  line-height: 34px;
}
.u-single-desc {
  font-family: 'PingFang SC', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 30px;
  color: rgba(0, 0, 0, 0.85);
  text-align: justify;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-single-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* 消除内容区与底部之间的白色间隙 */
.index-footer {
  background: #f5f5f5;
  overflow: hidden;
}

/* 暂无产品提示 */
.m-empty-state {
  text-align: center;
  padding: 80px 0;
}

.m-empty-state .u-empty-text {
  font-size: 18px;
  color: rgba(0, 0, 0, 0.45);
}
