/* 基础样式设置 */
:root {
  --primary: #0a3d62;
  --primary-light: #3c6382;
  --secondary: #60a3bc;
  --accent: #f6b93b;
  --light: #f5f6fa;
  --dark: #2c3e50;
  --gray: #95a5a6;
  --white: #ffffff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  overflow-x: hidden;
}

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

/* 页眉样式 */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo img {
  height: 50px;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  width: 100%;
}

.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--dark);
  margin: 5px;
  transition: var(--transition);
}

/* 英雄区域样式 */
.hero {
  height: 90vh;
  position: relative;
  background: linear-gradient(rgba(10, 61, 98, 0.8), rgba(10, 61, 98, 0.9));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: var(--white);
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 61, 98, 0.65); 
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  background-color: var(--accent);
  color: var(--dark);
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #e5a728;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-light);
}

/* 通用section样式 */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent);
}

.section-description {
  max-width: 700px;
  margin: 0 auto;
  color: var(--gray);
  font-size: 1.1rem;
}

/* 特色部分样式 */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}

/* 产品展示样式 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.product-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-img {
  height: 200px;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.product-info {
  padding: 25px;
}

.product-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.product-description {
  color: var(--gray);
  margin-bottom: 20px;
}

/* 应用领域样式 */
.applications {
  background-color: var(--white);
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 60px;
  margin-top: 40px;
}

.application-item {
  display: flex;
  gap: 30px;
  align-items: center;
}

.application-img {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.application-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.application-content {
  flex: 1;
}

.application-title {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.application-description {
  margin-bottom: 20px;
  color: var(--dark);
}

/* 新闻中心样式 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.news-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-img {
  height: 200px;
  overflow: hidden;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.news-info {
  padding: 25px;
}

.news-date {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 10px;
}

.news-title {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 15px;
  transition: var(--transition);
}

.news-card:hover .news-title {
  color: var(--primary-light);
}

.news-excerpt {
  color: var(--dark);
  margin-bottom: 20px;
}

/* 关于我们样式 */
.about {
  background-color: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-img {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.values {
  margin-top: 80px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.value-card {
  text-align: center;
  padding: 30px;
}

.value-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.value-title {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 15px;
}

/* 联系我们样式 */
.contact {
  background-color: var(--white);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 5px;
}

.contact-details h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-details p {
  color: var(--gray);
}

.map {
  height: 300px;
  background-color: #eaeaea;
  border-radius: 10px;
  margin-top: 30px;
  overflow: hidden;
  position: relative;
}

.map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-form h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 61, 98, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* 页脚样式 */
footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 40px;
}

.footer-logo-text {
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.footer-links h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .about-content,
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .application-item {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    right: 0;
    top: 70px;
    height: calc(100vh - 70px);
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    transform: translateX(100%);
    transition: transform 0.5s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .burger {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

    /* 新闻详情页自定义样式 */
    .news-detail-container {
      display: flex;
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 20px 0;

    }
           
    /* 右侧新闻内容 - 70%宽度 */
    .news-detail-content {
      max-width: 800px; 
      width: 100%; 
      margin: 0 auto; 
      padding: 0 20px; 
      box-sizing: border-box;
    }
    
    /* 新闻标题样式 */
    .news-detail-title {
      font-size: 2.2rem; 
      margin: 0 0 20px;
      line-height: 1.3;
    }
    
    .news-detail-meta {
      color: #888;
      margin-bottom: 20px;
      font-size: 0.9rem;
    }
    
    /* 新闻正文样式 - 居中显示 */
    .news-detail-body {
      text-align: center; 
    }
    
    .news-detail-body p {
      text-indent: 2em; 
      line-height: 1.5; 
      margin-bottom: 15px;
      text-align: justify; 
      display: inline-block; 
      max-width: 100%;
    }
    
    .news-detail-body h3 {
      text-align: left; 
      margin: 20px 0; 
    }

    /* 新闻图片样式 - 居中显示 */
    .news-detail-main-img, .news-detail-inner-img {
      width: 600px;
      height: auto;
      margin: 20px auto; 
      display: block; 
    }
    
    /* 返回按钮样式 */
    .news-detail-back {
      margin-top: 10px; 
      text-align: center; 
    }
    

    /* 响应式调整 */
    @media (max-width: 768px) {
      .news-detail-container {
        flex-direction: column;
      }
      
      .news-detail-content {
        width: 100%;
        padding: 0;
      }
      
      /* 移动端图片自适应 */
      .news-detail-main-img, .news-detail-inner-img {
        width: 100%;
        max-width: 600px;
      }
    }

    /* 下载按钮样式 */
    .download-btn {
        display: inline-block;
        padding: 10px 20px;
        background-color: #1a3a5f;
        color: #fff;
        text-decoration: none;
        border-radius: 4px;
        margin-top: 20px;
        transition: all 0.3s;
    }

    .download-btn:hover {
        background-color: #0d2338;
    }

    .download-btn i {
        margin-right: 8px;
    }

    .beian-link {
    /* 继承父元素的字体样式 */
    font-family: inherit;
    font-size: inherit;
    color: inherit; /* 文字颜色和周围保持一致 */
    text-decoration: none; /* 去掉默认下划线 */
  }
  /* 可选：鼠标悬停时也保持一致（默认链接悬停会变色/下划线，这里取消） */
  .beian-link:hover {
    color: inherit;
    text-decoration: none;
  }