/* ==============================
   Home Hero Section
   首页主视觉区域
   ============================== */
.hero-section {
  position: relative;
  min-height: calc(100vh - 78px);
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background-image: url("../images/hero/home-hero-battery-line.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  animation: heroImageFade 1.4s ease-out forwards;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.18)
    ),
    linear-gradient(
      rgba(7, 28, 55, 0.22),
      rgba(7, 28, 55, 0.32)
    );

  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;

  max-width: 920px;
  padding: 0 24px;
  text-align: center;
  color: #ffffff;

  opacity: 0;
  transform: translateY(28px);

  animation: heroTextFadeUp 1s ease-out 0.45s forwards;
}

.hero-subtitle {
  margin-bottom: 18px;

  font-size: 20px;
  font-weight: 500;
  letter-spacing: 4px;
  color: #9ee8ff;
}

.hero-content h1 {
  margin-bottom: 24px;

  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 2px;
}

.hero-description {
  max-width: 760px;
  margin: 0 auto;

  font-size: 20px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

@keyframes heroImageFade {
  from {
    opacity: 0.45;
    filter: brightness(0.75);
    transform: scale(1.04);
  }

  to {
    opacity: 1;
    filter: brightness(1);
    transform: scale(1);
  }
}

@keyframes heroTextFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: calc(100vh - 76px);
    background-position: center;
  }

  .hero-content {
    padding: 0 26px;
  }

  .hero-subtitle {
    font-size: 15px;
    letter-spacing: 3px;
  }

  .hero-content h1 {
    font-size: 42px;
    line-height: 1.15;
  }

  .hero-description {
    font-size: 16px;
    line-height: 1.8;
  }
}

/* ==============================
   Home Intro Section
   首页公司介绍区域
   ============================== */
.intro-section {
  padding: 90px 24px;
  background-color: #ffffff;
}

.intro-container {
  max-width: 1180px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
}

.intro-image img {
  width: 100%;
  display: block;
  border-radius: 0;
  object-fit: cover;
}

.intro-content {
  text-align: left;
  color: #14345a;
}

.intro-content h2 {
  margin-bottom: 24px;
  font-size: 38px;
  line-height: 1.2;
  font-weight: 800;
  color: #073b78;
}

.intro-content p {
  margin-bottom: 24px;
  font-size: 18px;
  line-height: 1.7;
  color: #1f2f46;
}

.intro-content strong {
  font-weight: 800;
  color: #071f3d;
}

/* ==============================
   Scroll Reveal Animation
   滚动进入视口动画
   ============================== */
.reveal {
  opacity: 0;
  transition:
    opacity 0.9s ease var(--delay, 0s),
    transform 0.9s ease var(--delay, 0s);
}

.reveal-left {
  transform: translateX(-50px);
}

.reveal-right {
  transform: translateX(50px);
}

.reveal.show {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .intro-section {
    padding: 64px 22px;
  }

  .intro-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .intro-image {
    order: 1;
  }

  .intro-content {
    order: 2;
  }

  .intro-content h2 {
    font-size: 32px;
  }

  .intro-content p {
    font-size: 16px;
    line-height: 1.8;
  }

  .reveal-left,
  .reveal-right {
    transform: translateY(36px);
  }

  .reveal.show {
    transform: translateY(0);
  }
}

/* ==============================
   Home Applications Section
   首页应用领域区域
   ============================== */
.support-section {
  padding: 90px 24px;
  background-color: #ffffff;
}

.support-container {
  max-width: 1300px;
  margin: 0 auto;
}

.section-heading {
  max-width: 900px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 20px;
  font-size: 42px;
  line-height: 1.2;
  font-weight: 500;
  color: #073b78;
}

.section-heading p {
  font-size: 17px;
  line-height: 1.8;
  color: #1f4d84;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 28px;
}

.support-grid-four {
  grid-template-columns: repeat(2, 1fr);
  max-width: 1400px;
  margin: 0 auto;
  gap: 36px 36px;
}

.support-image-card {
  padding: 0;
  overflow: visible;
  border: none;
  background-color: transparent;
  box-shadow: none;
}

.support-image-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.support-card {
  border: 1px solid #d6dce5;
  background-color: #ffffff;
  padding: 28px 24px 30px;
  text-align: center;

  transition:
    opacity 0.9s ease var(--delay, 0s),
    transform 0.9s ease var(--delay, 0s),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.support-card.reveal {
  opacity: 0;
  transform: translateY(36px);
}

.support-card.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.support-card:hover {
  transform: translateY(-6px);
  border-color: rgba(7, 59, 120, 0.35);
  box-shadow: 0 16px 36px rgba(7, 31, 61, 0.12);
}

.support-image-card:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

@media (max-width: 900px) {
  .support-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .support-section {
    padding: 64px 22px;
  }

  .section-heading {
    margin-bottom: 36px;
    text-align: left;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .section-heading p {
    font-size: 16px;
  }

  .support-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .support-card {
    padding: 24px 20px 28px;
  }
}

/* ==============================
   Product Matrix Page
   产品矩阵页面基础布局
   ============================== */
.product-series-heading {
  padding: 70px 24px 46px;
  background-color: #ffffff;
  text-align: center;
}

.product-series-heading h2 {
  margin-bottom: 24px;

  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.2;
  font-weight: 700;
  color: #071f3d;
  letter-spacing: 2px;
}

.section-divider {
  width: 70%;
  height: 3px;
  margin: 0 auto;

  background-color: #cfd6df;
  border-radius: 999px;

  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.9s ease;
}

.section-divider.show {
  transform: scaleX(1);
}


.product-feature-section {
  padding: 90px 24px;
  background-color: #ffffff;
}

.product-feature-container {
  max-width: 1180px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 70px;
}

.product-feature-content {
  color: #0a2649;
}

.product-feature-label {
  margin-bottom: 16px;

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #0a5fb4;
}

.product-feature-content h2 {
  margin-bottom: 24px;

  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.1;
  font-weight: 800;
  color: #071f3d;
}

.product-feature-content p {
  margin-bottom: 34px;

  font-size: 17px;
  line-height: 1.9;
  color: #4f5f73;
}

.product-feature-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 13px 28px;

  color: #ffffff;
  background-color: #073b78;
  border-radius: 999px;

  font-size: 16px;
  font-weight: 600;

  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.product-feature-btn:hover {
  transform: translateY(-3px);
  background-color: #0a5fb4;
  box-shadow: 0 14px 30px rgba(7, 59, 120, 0.22);
}

/* ==============================
   Product Carousel
   产品轮播图
   ============================== */
.product-carousel {
  position: relative;
  min-height: 430px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.carousel-stage {
  position: relative;
  width: 100%;
  height: 390px;
}

.carousel-item {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 330px;
  height: 330px;
  padding: 26px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background:
    linear-gradient(135deg, #f4f8fc, #e7eef6);
  border: 1px solid rgba(7, 59, 120, 0.12);
  border-radius: 26px;

  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  filter: blur(4px);

  transition:
    transform 0.55s ease,
    opacity 0.55s ease,
    filter 0.55s ease,
    box-shadow 0.55s ease;
}

.carousel-item img {
  width: 100%;
  height: 230px;
  display: block;
  object-fit: contain;
  margin-bottom: 18px;
}

.carousel-item span {
  font-size: 18px;
  font-weight: 700;
  color: #073b78;
}

.carousel-item.is-active {
  opacity: 1;
  z-index: 3;
  transform: translate(-50%, -50%) scale(1);
  filter: blur(0);
  box-shadow: 0 22px 50px rgba(7, 31, 61, 0.16);
}

.carousel-item.is-prev {
  opacity: 0.42;
  z-index: 2;
  transform: translate(-118%, -50%) scale(0.78);
  filter: blur(3px);
}

.carousel-item.is-next {
  opacity: 0.42;
  z-index: 2;
  transform: translate(18%, -50%) scale(0.78);
  filter: blur(3px);
}

.carousel-item.is-hidden {
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #073b78;
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(7, 31, 61, 0.15);

  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;

  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.08);
  color: #ffffff;
  background-color: #073b78;
}

.carousel-btn-prev {
  left: 6px;
}

.carousel-btn-next {
  right: 6px;
}

@media (max-width: 900px) {
  .product-feature-container {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .product-feature-content {
    text-align: center;
    order: 1;
  }

  .product-carousel {
    min-height: 390px;
    order: 2;
  }

  .carousel-stage {
    height: 350px;
  }

  .carousel-item {
    width: 280px;
    height: 300px;
  }

  .carousel-item img {
    height: 200px;
  }

  .carousel-item.is-prev {
    transform: translate(-110%, -50%) scale(0.72);
  }

  .carousel-item.is-next {
    transform: translate(10%, -50%) scale(0.72);
  }
}

@media (max-width: 600px) {
  .product-feature-section {
    padding: 70px 22px;
  }

  .product-feature-content {
    text-align: left;
  }

  .product-feature-content h2 {
    font-size: 40px;
  }

  .product-feature-content p {
    font-size: 16px;
    line-height: 1.8;
  }

  .product-carousel {
    min-height: 340px;
  }

  .carousel-stage {
    height: 320px;
  }

  .carousel-item {
    width: 240px;
    height: 270px;
    padding: 20px;
  }

  .carousel-item img {
    height: 170px;
  }

  .carousel-item span {
    font-size: 16px;
  }

  .carousel-item.is-prev {
    transform: translate(-104%, -50%) scale(0.68);
    opacity: 0.28;
  }

  .carousel-item.is-next {
    transform: translate(4%, -50%) scale(0.68);
    opacity: 0.28;
  }

  .carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 30px;
  }
}

.product-carousel-single .carousel-item {
  opacity: 1;
  z-index: 3;
  transform: translate(-50%, -50%) scale(1);
  filter: blur(0);
  box-shadow: 0 22px 50px rgba(7, 31, 61, 0.16);
}

/* Carousel Dots / 轮播指示点 */
.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  z-index: 6;
}

.carousel-dot {
  width: 9px;
  height: 9px;

  border: none;
  border-radius: 50%;
  background-color: rgba(7, 59, 120, 0.22);

  cursor: pointer;
  padding: 0;

  transition:
    width 0.25s ease,
    background-color 0.25s ease,
    transform 0.25s ease;
}

.carousel-dot.is-active {
  width: 24px;
  border-radius: 999px;
  background-color: #073b78;
}

.carousel-dot:hover {
  transform: scale(1.15);
  background-color: #0a5fb4;
}

/* Product Section Backgrounds / 产品区块背景色 */
#start-stop-series {
  background-color: #f4f8fc;
}

#industrial-power-series {
  background-color: #ffffff;
}

#small-power-series {
  background-color: #f4f8fc;
}

#storage-series {
  background-color: #ffffff;
}

/* ==============================
   Product Detail Pages
   产品详情页通用样式
   ============================== */

.industrial-detail-section {
  min-height: 100vh;
  padding: 90px 24px 140px;
  background-color: #ffffff;
}

.industrial-detail-container {
  max-width: 1480px;
  margin: 0 auto;
  display: block;
}

/* 页面大标题：位于产品列表上方 */
.industrial-page-heading {
  margin-bottom: 64px;
}

.industrial-page-heading h1 {
  margin: 0;

  font-size: clamp(64px, 6vw, 96px);
  line-height: 1.05;
  font-weight: 900;
  color: #071f3d;
  letter-spacing: 2px;
}

/* 产品列表 */
.industrial-products {
  width: 100%;
}

/* 单个产品块：左侧型号标记 + 灰线，右侧产品内容 */
.industrial-product-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 56px;

  margin-bottom: 160px;
  align-items: stretch;

  opacity: 0;
  transform: translateY(42px);

  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.industrial-product-row.show {
  opacity: 1;
  transform: translateY(0);
}

/* 左侧型号标记和竖线：跟随当前产品区域滚动 */
.industrial-product-marker {
  position: sticky;
  top: 120px;
  align-self: start;

  display: grid;
  grid-template-columns: 100px 1fr;
  column-gap: 28px;
  align-items: start;

  padding-top: 8px;
}

.industrial-product-marker span {
  font-size: 38px;
  line-height: 1.1;
  font-weight: 800;
  color: #4f5f73;
  white-space: nowrap;
}

.industrial-product-line {
  width: 5px;
  height: calc(100vh - 170px);
  min-height: 540px;

  background-color: #9aa3ae;
  border-radius: 999px;

  transform: scaleY(0);
  transform-origin: top;

  transition: transform 2.2s ease 0.35s;
}

.industrial-product-row.show .industrial-product-line {
  transform: scaleY(1);
}

/* 右侧产品详情内容 */
.product-detail-block {
  max-width: 880px;
  margin: 0 0 0 10%;
  padding-bottom: 80px;

  opacity: 1;
  transform: none;
  transition: none;
}

.product-detail-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 30px;
  padding: 11px 32px;

  color: #ffffff;
  background-color: #073b78;
  border-radius: 8px;

  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 3px;
}

.product-detail-logo {
  margin-bottom: 20px;
}

.product-detail-logo img {
  max-width: 380px;
  width: 100%;
  height: auto;
  display: block;
}

.product-detail-subtitle {
  margin-bottom: 50px;
}

.product-detail-subtitle p {
  margin-bottom: 8px;

  font-size: 24px;
  line-height: 1.5;
  font-weight: 700;
  color: #073b78;
}

.product-detail-main-image {
  margin-bottom: 48px;
}

.product-detail-main-image img {
  width: 100%;
  max-width: 820px;
  height: auto;
  display: block;
  object-fit: contain;
}

.product-detail-description {
  max-width: 920px;
  margin-bottom: 52px;
}

.product-detail-description p {
  margin-bottom: 18px;

  font-size: 18px;
  line-height: 1.9;
  color: #4f5f73;
}

.product-detail-spec-image {
  margin-top: 38px;
}

.product-detail-spec-image img {
  width: 78%;
  max-width: 660px;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 14px;
}

/* 手机端：隐藏页面大标题、型号标记和竖线，直接展示产品内容 */
@media (max-width: 768px) {
  .industrial-detail-section {
    padding: 56px 22px 90px;
  }

  .industrial-page-heading {
    display: none;
  }

  .industrial-product-row {
    display: block;
    margin-bottom: 90px;
    opacity: 1;
    transform: none;
  }

  .industrial-product-marker {
    display: none;
  }

  .product-detail-block {
    max-width: 100%;
    margin: 0;
    padding-bottom: 48px;
  }

  .product-detail-badge {
    font-size: 22px;
    padding: 9px 22px;
  }

  .product-detail-logo img {
    max-width: 320px;
  }

  .product-detail-subtitle p {
    font-size: 18px;
  }

  .product-detail-description p {
    font-size: 16px;
    line-height: 1.8;
  }

  .product-detail-spec-image img {
    border-radius: 10px;
  }
}

/* ==============================
   Storage Detail Page Adjustment
   储能系列单独调整
   ============================== */

.storage-detail-page .industrial-product-row {
  grid-template-columns: 260px minmax(0, 1fr);
}

.storage-detail-page .industrial-product-marker {
  grid-template-columns: 170px 1fr;
}

.storage-detail-page .industrial-product-marker span {
  font-size: 36px;
  letter-spacing: 1px;
}

/* ==============================
   Small Power Detail Page
   小型动力详情页单独调整
   ============================== */

.small-power-detail-page .product-detail-block {
  max-width: 1050px;
}

.small-power-detail-page .product-detail-main-image img {
  max-width: 1050px;
  border-radius: 12px;
}

.small-power-detail-page .product-detail-description {
  max-width: 920px;
}

/* ==============================
   Contact Section
   首页联系我们区域
   ============================== */

.contact-section {
  padding: 170px 24px 56px;

  background:
    linear-gradient(
      180deg,
      #073b78 0%,
      #0a2649 35%,
      #ffffff 72%,
      #ffffff 100%
    );

  color: #ffffff;
  text-align: center;
}

.contact-container {
  max-width: 900px;
  margin: 0 auto 92px;
  text-align: center;
}

.contact-label {
  margin-bottom: 16px;
  font-size: 14px;
  letter-spacing: 4px;
  color: rgba(250, 250, 250, 0.68);
}

.contact-container h2 {
  margin-bottom: 22px;
  font-size: 46px;
  line-height: 1.2;
  font-weight: 700;
  color: #ffffff;
}

.contact-description {
  max-width: 680px;
  margin: 0 auto 34px;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  margin-bottom: 26px;
  padding: 13px 26px;

  color: #073b78;
  background-color: #ffffff;
  border-radius: 999px;

  font-size: 16px;
  font-weight: 600;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.contact-email:hover {
  transform: translateY(-3px);
  background-color: #f2f7ff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.contact-address {
  max-width: 760px;
  margin: 28px auto 34px;
  text-align: center;
}

.contact-address p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
}

.contact-postcode {
  margin-top: 8px;
}

/* Contact QR Codes / 二维码区域 */
.contact-qr-container {
  max-width: 860px;
  margin: 0 auto 34px;

  display: grid;
  grid-template-columns: repeat(2, 330px);
  justify-content: center;
  align-items: start;
  column-gap: 90px;
}

.contact-qr-card {
  width: 330px;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-qr-media {
  width: 330px;
  height: 210px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 18px;
}

/* 左侧二维码：白色卡片 */
.contact-qr-card:not(.contact-qr-card-plain) .contact-qr-media img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  display: block;

  padding: 10px;
  background-color: #ffffff;
  border: 1px solid #dce3ec;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(7, 31, 61, 0.1);
}

/* 右侧微信搜索图：不要白框，直接放图 */
.contact-qr-card-plain .contact-qr-media img {
  width: 330px;
  height: auto;
  max-height: 190px;
  object-fit: contain;
  display: block;

  padding: 0;
  background-color: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}


/* 二维码下面文字 */
.contact-qr-card p {
  width: 330px;
  margin: 0;

  text-align: center;
  font-size: 17px;
  font-weight: 800;
  color: #083468;
}

.contact-copy {
  margin-top: 28px;
  font-size: 13px;
  color: #6f7b8a;
}

/* Contact Mobile Layout / 联系我们区域手机端适配 */
@media (max-width: 768px) {
  .contact-section {
    padding: 120px 22px 42px;

    background:
      linear-gradient(
        180deg,
        #073b78 0%,
        #0a2649 35%,
        #ffffff 72%,
        #ffffff 100%
      );
  }

  .contact-container {
    margin-bottom: 72px;
  }

  .contact-container h2 {
    font-size: 34px;
  }

  .contact-description {
    font-size: 16px;
  }

  .contact-email {
    font-size: 15px;
    padding: 12px 22px;
  }

  .contact-address p {
    font-size: 14px;
    text-align: center;
  }

  .contact-qr-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-qr-card {
    width: 100%;
  }

  .contact-qr-media {
    width: min(330px, 100%);
    height: auto;
    min-height: 190px;
  }

  .contact-qr-card p {
    width: 100%;
  }

  .contact-qr-card-plain .contact-qr-media img {
    width: min(320px, 100%);
  }
}