.nav-contact {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 0.0625rem rgba(255, 255, 255, 0.25);
}

.nav-contact:hover {
  background: rgba(255, 255, 255, 0.3);
}

.section {
  box-shadow: 0 1.125rem 3rem rgba(15, 23, 42, 0.08); /* 18px 48px */
}

/* ---------------------------顶部图片----------------------------- */
.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: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.5); /* 2px 2px 4px */
}

.hero-title-box-subtitle {
  font-size: 1.5rem;
  margin-top: 0.625rem; /* 10px */
  text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.5);
}

/*---------------------重点产品展示---------------------*/
.marine-power-main-product {
  width: 100%;
  padding: 5rem 6.25rem; /* 80px 100px */
}

.main-product-container-title-box {
  margin-bottom: 2.5rem; /* 40px */
  font-size: 2.75rem; /* 44px */
  text-shadow: 0.125rem 0.125rem 0.25rem 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: 2.5rem; /* 40px */
  cursor: pointer;
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

/* 分割线 */
.main-product-module:not(:last-child) {
  border-right: 0.0625rem solid rgba(255, 255, 255, 0.3); /* 1px */
}

.main-product-dec-box {
  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 1.875rem; /* 28px 30px */
  position: absolute;
  transition: grid-template-rows 0.5s;
}

/* 标题始终显示 */
.main-product-title {
  font-size: 1.375rem; /* 22px */
  font-weight: bold;
  text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.5);
}

/* 详情部分：默认隐藏在下方 */
.main-product-details {
  display: -webkit-box;
  font-size: 0.875rem; /* 14px */
  font-weight: 400;
  line-height: 1.25rem; /* 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: 10rem; /* 160px */
  padding-bottom: 5rem; /* 80px */
  /* padding: 5rem 6.25rem; */
}

.advantage-title-box {
  padding: 0 20%;
}

.advantage-title {
  font-size: 2.875rem; /* 46px */
  text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
}

.advantage-dec {
  max-width: 52.5rem; /* 840px */
  font-size: 1rem; /* 16px */
  color: #666;
  line-height: 1.5;
  margin: 1.25rem 0; /* 20px */
}

.advantage-img-box {
  padding: 5rem 11% 0; /* 80px */
}

.advantage-img-box img {
  width: 100%;
}

/* ===============================
   产品页移动端适配
================================ */
@media (max-width: 768px) {
  .hero-title-box {
    width: 80%;
  }
  .hero-title-box-title {
    font-size: 3rem;
  }
  .marine-power-main-product {
    padding: 5rem 1rem;
  }
  .main-product-container-title-box {
    font-size: 2rem;
  }
  .main-product-title,
  .main-product-link {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  .marine-power-advantage {
    padding-top: 5rem;
  }
  .advantage-title-box {
    padding: 0 10%;
  }
  .advantage-title {
    font-size: 2rem;
  }
  .advantage-img-box {
    padding: 2rem 5% 0;
  }
}
