/* 本地字体声明 */
@font-face {
  font-family: 'Source Han Serif SC';
  src: url('fonts/SourceHanSerifSC-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Han Serif SC';
  src: url('fonts/SourceHanSerifSC-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Han Serif SC';
  src: url('fonts/SourceHanSerifSC-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 响应式图片 - 高清质量 */
img {
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: high-quality;
  image-rendering: optimize-quality;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  width: 100%;
  object-fit: cover;
}

/* 响应式文字大小 */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: clamp(1.2rem, 4vw, 3rem);
  line-height: 1.2;
}

p,
span,
div,
a {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  line-height: 1.6;
}

/* 响应式容器 */
.container,
.content,
.section {
  width: 100%;
  max-width: 100vw;
  padding: clamp(1rem, 5vw, 3rem);
  box-sizing: border-box;
}

/* 响应式背景图片 - 高清质量 */
[style*="background-image"],
[style*="background: url"] {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: high-quality;
  image-rendering: optimize-quality;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* 响应式背景容器 - 高清质量 */
.hero-image,
.contact-image,
.service-image,
.about-image,
.afloat-image,
.energy-hero-image,
.case-study-image,
.certificate-image {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: high-quality;
  image-rendering: optimize-quality;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* 基于视口单位的响应式背景 */
@media (max-width: 1024px) {

  .hero-image,
  .contact-image,
  .about-image,
  .afloat-image {
    background-size: 110% !important;
  }
}

@media (max-width: 768px) {

  .hero-image,
  .contact-image,
  .about-image,
  .afloat-image {
    background-size: 120% !important;
  }
}

@media (max-width: 480px) {

  .hero-image,
  .contact-image,
  .about-image,
  .afloat-image {
    background-size: 130% !important;
  }
}

/* 基于字体大小的响应式背景调整 */
@media (min-resolution: 2dppx) {

  .hero-image,
  .contact-image,
  .about-image,
  .afloat-image {
    background-size: 105% !important;
  }
}

/* 高分辨率屏幕优化 */
@media (min-width: 1920px) {

  .hero-image,
  .contact-image,
  .about-image,
  .afloat-image {
    background-size: 95% !important;
  }
}

/* 超宽屏优化 */
@media (min-width: 2560px) {
  body {
    font-size: clamp(16px, 1.5vw, 20px);
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-size: clamp(1.5rem, 3vw, 4rem);
  }

  .hero-image,
  .contact-image,
  .about-image,
  .afloat-image {
    background-size: 90% !important;
  }
}

/* 超小屏幕优化 */
@media (max-width: 320px) {
  body {
    font-size: 12px;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-size: 1rem;
  }

  .container,
  .content,
  .section {
    padding: 0.5rem;
  }
}

body {
  font-family: 'Source Han Serif SC', serif;
  line-height: 1.6;
  color: #ffffff;
  background-color: #2a2a2a;
  font-size: clamp(14px, 2.5vw, 18px);
}

/* Navigation Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #000000;
  padding: 1rem 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  height: 112px;
  box-sizing: border-box;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
  height: 100%;
}

.nav-logo a {
  text-decoration: none;
  display: inline-block;
}

.nav-logo-image {
  height: 72px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease;
}

.nav-logo a:hover .nav-logo-image {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #4a9eff;
}

/* Hero Section */
.hero {
  background-color: #2a2a2a;
  height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 112px;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 20px;
  width: 100%;
  position: relative;
  z-index: 5;
}

.hero-image {
  height: calc(80vh - 40px);
  width: 60vw;
  background: url('6.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  background-repeat: no-repeat;
  border-radius: 0;
  position: absolute;
  top: -50px;
  left: 0;
  z-index: 1;
  transform: translateZ(0);
  will-change: transform;
}

.hero-right-area {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40vw;
  height: calc(80vh - 40px);
  background-color: #000000;
  z-index: 1;
}

.hero-text {
  text-align: right;
  z-index: 10;
  position: relative;
  transform: translate(-20px, -60px);
}

.hero-line {
  font-size: 34px;
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 10px;
  line-height: 1.1;
  display: block;
  opacity: 1;
  visibility: visible;
}

/* Energy Support Section */
.energy-support {
  background-color: #2a2a2a;
  padding: 80px 0;
}

.energy-support-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 3fr;
  /* make image column narrower */
  gap: 40px;
  align-items: start;
  padding: 0 20px;
}

.energy-support-image {
  height: 520px;
  background: url('15.jpg') center/cover no-repeat;
}

.energy-support-text {
  color: white;
}

.energy-support-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.energy-support-desc {
  color: #e0e0e0;
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: none;
}

/* Vessel Performance Section */
.vessel-performance {
  position: relative;
  height: 80vh;
  overflow: hidden;
}

.vessel-performance-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('16.jpg') center/cover no-repeat;
  z-index: 1;
}

.vessel-performance-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.vessel-performance-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.vessel-performance-text {
  color: white;
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 800px;
  /* width: 100%; */
  font-weight: 500;
  background: rgba(0, 0, 0, 0.4);
  padding: 40px 50px;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  text-align: right;
}

/* Case Study Section */
.case-study {
  background-color: #2a2a2a;
  padding: 80px 0;
}

.case-study-top {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 400px auto;
  /* lock first row height to image */
  column-gap: 60px;
  row-gap: 6px;
  /* small vertical gap between rows */
  align-items: start;
  padding: 0 20px;
  margin-bottom: 0;
  /* no extra space below; rows control spacing */
}

.case-study-image {
  height: 400px;
  background: url('17.jpg') center/cover no-repeat;
  border-top-left-radius: 16px;
}

.case-study-text {
  color: white;
  padding: 20px 0;
  margin-top: 0;
  grid-column: 2;
  grid-row: 1 / span 2;
  /* span both rows so left column can stack */
}

.case-study-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
  color: white;
}

.case-study-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  color: #00d4aa;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.case-study-description {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #e0e0e0;
  text-align: justify;
}

.case-study-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 0 20px;
}

.case-study-middle {
  /* Now sits inside the grid's left column as row 2 */
  max-width: 100%;
  width: 100%;
  margin-bottom: 2rem;
  /* inherit spacing from grid row-gap */
  padding: 0;
  /* avoid extra inner padding */
  grid-column: 1;
  grid-row: 2;
  display: block;
  /* let inner flex container control layout */
}

.case-study-images-container {
  width: 100%;
  height: 400px;
  margin-top: 24px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  gap: 0;
  background-color: #333;
}

.case-study-image-item {
  flex: 1;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
}

.case-study-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}


.case-study-image-left,
.case-study-image-right {
  width: 632px;
  height: 355px;
  overflow: hidden;
}

.case-study-image-left {
  border-bottom-left-radius: 16px;
}

.case-study-image-right {
  border-bottom-right-radius: 16px;
}

.case-study-image-left img,
.case-study-image-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Energy Saving Devices Section */
.energy-devices {
  background-color: #2a2a2a;
  padding: 80px 0;
}

.energy-devices-content {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  /* display: grid;
    grid-template-columns: 0.5fr 1fr; */
  gap: 0;
  align-items: center;
  padding: 0;
  background-color: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.energy-devices-image {
  /* width: 600px; */
  flex: 0 0 400px;

  /* height: 400px; */
  img {
    width: 100%;
    /* height: 100%; */
    object-fit: cover;
  }
}

.energy-devices-text {
  color: white;
  padding: 40px;
}

.energy-devices-title {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.energy-devices-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #e0e0e0;
}

/* Energy Saving Devices Details Section */
.devices-details {
  background-color: #2a2a2a;
  padding: 80px 0;
}

.devices-details-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.devices-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

.devices-image {
  background: url('40.jpg') left top/cover no-repeat;
  border-radius: 8px;
  min-height: 1400px;
  background-color: white;
}

.devices-text-panel {
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-height: 1400px;
  justify-content: space-around;
}

.device-text {
  color: white;
  padding: 20px;
  border-radius: 8px;
}

.device-title {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  line-height: 1.3;
}

.device-description {
  font-size: 1.3rem;
  line-height: 1.6;
  color: #e0e0e0;
  text-align: justify;
}

.devices-legend {
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 30px 20px;
  background-color: #1a1a1a;
}

.legend-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legend-content p {
  color: white;
  margin-bottom: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Certificate Section */
.certificate {
  background-color: #2a2a2a;
  padding: 80px 0;
}

.certificate-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  padding: 40px;
  background-color: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.certificate-image {
  /* background: url('微信图片_20250909005700_700_277.png') center/contain no-repeat; */
  border-radius: 8px;
  aspect-ratio: 3/4;
  min-height: 450px;
  background-color: white;
}

.performance-text {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  color: white;
  font-size: 1.2rem;
  line-height: 1.8;
  width: 80%;
  /* max-width: 2000px; */
  font-weight: 500;
  background: rgba(0, 0, 0, 0.4);
  padding: 40px 50px;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  text-align: center;
  z-index: 999;
}

.certificate-text {
  color: white;
  padding: 40px;
}

.certificate-title {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.certificate-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-line {
    font-size: 2.5rem;
  }

  .energy-support-title,
  .energy-devices-title,
  .certificate-title {
    font-size: 2rem;
  }
}

@media (max-width: 1024px) {
  .nav-links {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .nav-link {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: row;
    gap: 1rem;
    padding: 0 1rem;
    justify-content: flex-end;
  }

  .nav-links {
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .nav-link {
    font-size: 0.8rem;
  }

  .hero {
    justify-content: center;
    text-align: center;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero-line {
    font-size: 2rem;
  }

  .energy-support-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .case-study-top {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    column-gap: 0;
    row-gap: 20px;
  }

  .case-study-text {
    grid-column: 1;
    grid-row: 2;
  }

  .case-study-middle {
    grid-column: 1;
    grid-row: 3;
    margin: 0;
  }

  .energy-devices-content {
    grid-template-columns: 1fr;
  }

  .devices-layout {
    grid-template-columns: 1fr;
  }

  .certificate-content {
    grid-template-columns: 1fr;
  }

  .legend-content {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-line {
    font-size: 1.5rem;
  }

  .energy-support-title,
  .energy-devices-title,
  .certificate-title {
    font-size: 1.5rem;
  }

  .navigation ul {
    gap: 15px;
  }

  .navigation a {
    font-size: 12px;
  }
}

/* Contact Section */
.contact-section {
  padding: 6rem 0;
  background-color: #2a2a2a;
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #4a9eff, #00d4aa);
}

.contact-section::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #4a9eff, #00d4aa);
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.contact-title {
  font-family: 'Source Han Serif SC', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 1rem;
}

.contact-divider {
  width: 60px;
  height: 2px;
  background: #ffffff;
  margin: 0 auto 3rem auto;
}

.contact-content {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: center;
}

.contact-left {
  position: relative;
}

.contact-image {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.contact-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.contact-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.contact-services {
  text-align: center;
  color: #ffffff;
  margin-bottom: 2rem;
}

.contact-services p {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.contact-logo {
  margin-top: 7rem;
}

.logo-image {
  max-width: 280px;
  max-height: 112px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  display: block;
  margin: 0 auto;
}

.contact-right {
  padding: 2rem 2rem 2rem 6rem;
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #ffffff;
  flex-shrink: 0;
  border: 2px solid #ffffff;
  border-radius: 50%;
}


.contact-footer {
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-right {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding: 4rem 0;
  }

  .contact-title {
    font-size: 1.8rem;
  }

  .contact-image img {
    height: 400px;
  }

  .contact-logo {
    margin-top: 4rem;
  }

  .logo-image {
    max-width: 210px;
    max-height: 84px;
  }
}

@media (max-width: 480px) {
  .contact-title {
    font-size: 1.5rem;
  }

  .contact-image img {
    height: 300px;
  }

  .contact-services p {
    font-size: 1rem;
  }

  .contact-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .logo-image {
    max-width: 168px;
    max-height: 72px;
  }

  .contact-label {
    font-size: 0.9rem;
  }

  .contact-value {
    font-size: 1rem;
  }

  .logo-image {
    max-width: 168px;
    max-height: 72px;
  }
}