.section {
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}
/* ---------------------------顶部图片----------------------------- */
.marine-power-hero {
  height: 100vh;
  min-height: 56.25vw;
}
.marine-power-hero-container {
  width: 100%;
  height: 100%;
  /* background: url("/assets/images/solution/marine_power_system-hero.png")
    no-repeat center center; */
  background: url("/assets/images/solution/marine_power_system-hero.webp");
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: top;
  background-size: cover;
}
.hero-title-box {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, 0);
  text-align: center;
  color: #fff;
}
.hero-title-box-title {
  font-size: 3.5rem;
  font-weight: 600;
  margin: 0;
  /* 添加文字阴影 */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.hero-title-box-subtitle {
  font-size: 1.5rem;
  margin-top: 10px;
  /* 添加文字阴影 */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/*---------------------重点产品展示---------------------*/
.marine-power-main-product {
  width: 100%;
  padding: 80px 100px;
}
.main-product-container-title-box {
  margin-bottom: 40px;
  font-size: 44px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
}
.main-product-container {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  color: white;
}

/* 背景层 */
.main-product-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.main-product-bg.main-product-active {
  opacity: 1;
}

/* 模块区域 */
.main-product-modules {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 100%;
  z-index: 2;
}

.main-product-module {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

/* 分割线 */
.main-product-module:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.main-product-dec-box {
  /* display: grid;
    align-self: flex-end; */
  align-content: end;
  align-self: flex-end;
  color: #fff;
  display: grid;
  gap: 1rem;
  grid-template-rows: auto 0fr auto;
  height: -moz-fit-content;
  height: fit-content;
  inset: 0;
  margin: auto 0 0;
  overflow: hidden;
  padding: 1.75rem 30px;
  position: absolute;
  transition: grid-template-rows 0.5s;
}

/* 标题始终显示 */
.main-product-title {
  font-size: 22px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 详情部分：默认隐藏在下方 */
.main-product-details {
  display: -webkit-box;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 20px;
  margin-block: 0;
  text-overflow: ellipsis;
  -webkit-line-clamp: 7;
  line-clamp: 7;
  -webkit-box-orient: vertical;
  grid-row: 2 / 3;
  hyphens: auto;
  max-width: 20rem;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  transform: translateY(100%);
  transition: transform 0.5s, opacity 0.5s;
}

.main-product-link {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.main-product-link:hover {
  text-decoration: underline;
}

/* hover时详情上移出现 */
.main-product-module:hover .main-product-dec-box {
  grid-template-rows: auto 1fr auto;
}
.main-product-module:hover .main-product-details {
  transform: translateY(0);
  opacity: 1;
}

/* -----------------------优势1/优势2------------------*/
.marine-power-advantage {
  width: 100%;
  padding-top: 160px;
  padding-bottom: 80px;
  /* padding: 80px 100px; */
}
.advantage-title-box {
  padding: 0 20%;
}
.advantage-title {
  font-size: 46px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
.advantage-dec {
  max-width: 840px;
  font-size: 16px;
  color: #666;
  line-height: 1.5;
  margin: 20px 0;
}
.advantage-img-box {
  padding: 80px 11% 0;
}
.advantage-img-box img {
  width: 100%;
}
