/* 本地字体声明 */
@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;
}

/* 重置和基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li {
  list-style: none;
}

/* 响应式图片 - 高清质量 */
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,
.energy-devices-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;
  background-color: #0a0a0a;
  color: #ffffff;
  overflow-x: hidden;
  line-height: 1.6;
  font-size: clamp(14px, 2.5vw, 18px);
}

/* 导航栏样式 */
.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;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 2rem;
  gap: 2rem;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
}

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

.text-center {
  text-align: left;
}

.hero-text li {
  margin-bottom: 1rem;
  font-size: 16px;
  /* text-align: center; */
}


.hero-text li span {
  font-size: 14px;
  /* text-align: center; */
}

.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;
}


/* 主要内容区域 */
.main-content {
  min-height: 100vh;
  position: relative;
}

/* 英雄部分 */
.hero-section {
  position: relative;
  padding-top: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
}

.ship-image {
  width: 100%;
  height: 100%;
  background:
    url('36.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  position: relative;
  top: -240px;
  text-align: center;
  padding: 0 2rem 100px;
  z-index: 1;
}

.hero-title {
  font-family: 'Source Han Serif SC', serif;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.hero-description {
  margin-bottom: 2.5rem;
}

.hero-subtitle {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.hero-text {
  font-size: 22px;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.fz20 {
  font-size: 20px !important;
}

.w1200 {
  width: 1200px !important;
}
/* 滚动指示器 */
.scroll-indicator {
  display: flex;
  justify-content: center;
  margin: 4.5rem 0 1rem 0;
}

.scroll-icon {
  width: 50px;
  height: 50px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.scroll-arrow {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 12px solid #ffffff;
  position: relative;
  transform: translateY(8px);
}

.scroll-arrow::before {
  content: '';
  position: absolute;
  top: -24px;
  left: -1px;
  width: 2px;
  height: 20px;
  background: #ffffff;
}


.cta-button {
  display: inline-block;
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1rem;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.cta-button:active {
  transform: translateY(0);
}


/* 响应式设计 */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .cta-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  .content-boundary {
    display: none;
  }
}

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

  .hero-content {
    padding: 0 1rem;
  }

  .nav-links {
    gap: 0.5rem;
  }

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


/* 综合服务部分 */
.comprehensive-services {
  padding: 4rem 0;
  background: #2a2a2a;
  position: relative;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.services-main-title {
  font-family: 'Source Han Serif SC', serif;
  font-size: 34px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.services-subtitle {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 2rem;
  font-weight: 300;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.service-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #333;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-image {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.95) 0%,
      rgba(0, 0, 0, 0.8) 25%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.2) 75%,
      transparent 100%);
  z-index: 1;
}

.service-title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 600;
  z-index: 2;
  text-align: center;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.service-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
}

/* 响应式设计 - 综合服务部分 */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .services-main-title {
    font-size: 2rem;
  }

  .services-subtitle {
    font-size: 1.1rem;
  }

  .service-image {
    height: 320px;
  }

  .service-title {
    font-size: 1.2rem;
    bottom: 15px;
    left: 15px;
    right: 15px;
  }
}

@media (max-width: 480px) {
  .comprehensive-services {
    padding: 2rem 0;
  }

  .services-container {
    padding: 0 1rem;
  }

  .services-main-title {
    font-size: 1.8rem;
  }

  .services-subtitle {
    font-size: 1rem;
  }

  .service-image {
    height: 280px;
  }

  .service-title {
    font-size: 1.1rem;
  }
}

/* 联系信息部分 */
.contact-section {
  padding: 4rem 0;
  background: #2a2a2a;
  position: relative;
}

.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: 1.5rem;
  line-height: 1.3;
}

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

.contact-content {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  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;
  max-width: 100%;
}

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

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

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

.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: 1rem;
  margin-bottom: 2rem;
}

.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: 40px;
  height: 40px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #ffffff;
  flex-shrink: 0;
}

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

.contact-label {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-value {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 400;
}

.contact-footer {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
  padding: 1.5rem;
  white-space: nowrap;
}

/* 响应式设计 - 联系信息部分 */
@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

  .contact-overlay {
    padding: 1.5rem;
  }

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

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

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

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

  .contact-container {
    padding: 0 1rem;
  }

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

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

  .contact-overlay {
    padding: 1rem;
  }

  .contact-services {
    margin-top: 1rem;
  }

  .contact-logo {
    margin-bottom: 1rem;
  }

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

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #4a90e2;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5ba0f2;
}