 /* 全局样式 */
 :root {
       --primary-color: #4fc3f7;
     /* 天蓝色主色调 */
     --secondary-color: #29b6f6;
     /* 稍深的天蓝色 */
     --dark-color: #0288d1;
     /* 深蓝色用于强调 */
     --light-color: #e1f5fe;
     /* 浅蓝色背景 */
     --text-color: #333333;
     /* 主要文字颜色 */
     --light-text: #757575;
     /* 浅色文字 */
     --foot-color: #1E099F;
     --foot-L-color: #1C70F8;
     --dark-color-text: #1D2B70;
 }



 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: 'Microsoft YaHei', Arial, sans-serif;
     user-select: none;
     /* 禁止选中 */
     -webkit-user-drag: none;
     /* 禁止拖动图片 */
 }

 body {
     color: var(--text-color);
     line-height: 1.6;
     font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
     color: var(--text-color);
     line-height: 1.6;
     -webkit-user-select: none;
     /* Chrome, Safari */
     -moz-user-select: none;
     /* Firefox */
     -ms-user-select: none;
     /* IE10+ */
     user-select: none;
     /* 标准 */
     -webkit-touch-callout: none;
     /* iOS Safari */
     scrollbar-width: none;
     /* Firefox 隐藏滚动条 */
     -ms-overflow-style: none;
 }

 /* 基础样式 */
header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

/* 汉堡菜单按钮默认隐藏 */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* ======= 手机端样式 ======= */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px; /* 与header高度对应 */
    right: 0;
    background: white;
    flex-direction: column;
    width: 200px;
    padding: 15px;
    gap: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: none; /* 默认隐藏 */
  }

  .nav-links.show {
    display: flex; /* 切换时显示 */
  }

  .menu-toggle {
    display: block; /* 手机端显示 */
  }
}


 /* 不显示滚动条 */
 html,
 body {
     height: 100%;
     overflow: auto;
     -ms-overflow-style: none;
     /* IE 10+ */
     scrollbar-width: none;
     /* Firefox */
 }

 html::-webkit-scrollbar,
 body::-webkit-scrollbar {
     display: none;
     /* Chrome, Safari, Edge */
 }



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

 section {
     padding: 30px 0;
 }

 h1,
 h2,
 h3 {
     margin-bottom: 20px;
     color: var(--dark-color-text);
 }

 /* 导航栏样式 */
 header {
     background-color: white;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
     position: fixed;
     width: 100%;
     top: 0;
     z-index: 1000;
 }

 nav {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 15px 0;
 }
 .slogen {
    width: 400px;
    overflow: hidden;   /* 防止溢出 */
    padding: 0 10px;    /* 可选：左右留空 */
    height: auto;       /* 高度随图片自动撑开 */
    box-sizing: border-box;
    margin-bottom: 30px;
 }
 
.slogen img {
    width: 100%;        /* 宽度自适应容器 */
    height: auto;       /* 高度按比例自动缩放 */
    display: block;
    object-fit: contain; /* 保持图片原始比例 */
}

 
 
 
 .logo {
     font-size: 24px;
     font-weight: bold;
     color: var(--primary-color);
 }

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

 .nav-links li {
     margin-left: 30px;
 }

 .nav-links a {
     text-decoration: none;
     color: var(--text-color);
     font-weight: 500;
     transition: color 0.3s;
     font-size: 1.05rem;
     /* 字体变大，可根据需求调整 */
 }

 .nav-links a:hover,
 .nav-links a.active {
     color: var(--primary-color);
     /* 高亮颜色 */
     font-weight: 700;
 }

 .btn {
     display: inline-block;
     background-color: white;
     color: var(--primary-color);
     padding: 12px 30px;
     border-radius: 30px;
     text-decoration: none;
     font-weight: bold;
     transition: all 0.3s;
 }

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

 /* 机构介绍 */
 #about {
     background-color: white;
 }

 .about-content {
     display: flex;
     align-items: center;
     text-align: center;
     gap: 20px;
     
 }

 .about-text {
    /*  flex: 1; */
     text-align: left;
     /* 文字居左 */
     margin-bottom: 10px;
     /* 段落间距，可调整 */
 }

 .about-text p {
     margin-bottom: 20px;
     /* 段落间距，可调整 */
 }

 .about-image {
     flex: 1;
     border-radius: 10px;
     overflow: hidden;
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
 }

 .about-image img {
     width: 100%;
     height: auto;
     display: block;
 }

 /* 资质展示 */
 #qualifications {
     background-color: white;
 }

 .section-title {
     text-align: center;
     margin-bottom: 50px;
 }

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

 .qualification-card {
     background: white;
     border-radius: 10px;
     overflow: hidden;
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
     transition: transform 0.3s;
 }

 .qualification-card:hover {
     transform: translateY(-10px);
 }

 .qualification-img {
     height: 350px;
     /* 固定高度 */
     overflow: hidden;
     /* 超出部分隐藏 */
     display: flex;
     align-items: center;
     /* 垂直居中 */
     justify-content: center;
     /* 水平居中 */
     background-color: var(--light-color);
     ;
     /* 使用父级背景色 */
     border-radius: 5px;
     /* 可选：圆角 */
 }

 .qualification-img img {
     height: 100%;
     /* 高度填满容器 */
     width: auto;
     /* 宽度按原图比例自适应 */
     display: block;
 }

 .qualification-content {
     padding: 20px;
 }

 /* 产品展示 */
 #products {
     background-color: var(--light-color);
 }

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

 .product-card {
     background: white;
     border-radius: 10px;
     overflow: hidden;
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
 }

 .product-img {
     height: 200px;
     /* 固定高度 */
     overflow: hidden;
     /* 超出部分隐藏 */
     display: flex;
     align-items: center;
     /* 垂直居中 */
     justify-content: center;
     /* 水平居中 */
 }

 .product-img img {
     height: 100%;
     /* 填满容器高度 */
     width: auto;
     /* 宽度按原图比例自适应 */
     display: block;
 }

 .product-content {
     padding: 20px;
 }

 /* 新闻中心 - 新增部分 */
 #news {
     background-color: var(--light-color);
 }

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

 .news-card {
     background: white;
     border-radius: 10px;
     overflow: hidden;
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
     transition: transform 0.3s;
 }

 .news-card:hover {
     transform: translateY(-5px);
 }

 .news-image {
     height: 220px;
     /* 固定高度 */
     overflow: hidden;
     /* 超出部分隐藏 */
     display: flex;
     align-items: center;
     /* 垂直居中 */
     justify-content: center;
     /* 水平居中 */
 }

 .news-image img {
     height: 100%;
     /* 填满容器高度 */
     width: auto;
     /* 宽度按原图比例自适应 */
     display: block;
 }



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

 .news-content {
     padding: 20px;
 }

 .news-meta {
     display: flex;
     color: var(--light-text);
     font-size: 0.9rem;
     margin-bottom: 15px;
 }

 .news-meta span {
     margin-right: 15px;
     display: flex;
     align-items: center;
 }

 .news-image img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: transform 0.5s;
 }

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

 .news-content {
     padding: 20px;
 }

 .news-meta {
     display: flex;
     color: var(--light-text);
     font-size: 0.9rem;
     margin-bottom: 15px;
 }

 .news-meta span {
     margin-right: 15px;
     display: flex;
     align-items: center;
 }

 .news-meta i {
     margin-right: 5px;
 }

 .news-content h3 {
     margin-bottom: 10px;
     font-size: 1.2rem;
 }

 .news-content h3 a {
     color: var(--dark-color-text);
     text-decoration: none;
     transition: color 0.3s;
 }

 .news-content h3 a:hover {
     color: var(--primary-color);
 }

 .news-content p {
     margin-bottom: 15px;
     font-size: 0.95rem;
 }

 .news-link {
     display: inline-block;
     color: var(--primary-color);
     font-weight: 500;
     text-decoration: none;
 }

 .news-link:hover {
     text-decoration: underline;
 }

 .news-more {
     text-align: center;
     margin-top: 40px;
 }

 /* 联系我们 */
 #contact {
     background-color: var(--light-color); 
 }

 .contact-container {
     display: flex;
     gap: 40px;
 }

 .contact-info,
 .contact-form {
     flex: 1;
 }

 .info-item {
     display: flex;
     align-items: center;
     margin-bottom: 20px;
 }

 .info-icon {
     width: 40px;
     height: 40px;
     background-color: var(--light-color);
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     margin-right: 15px;
     color: white;
 }

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

 .form-group label {
     display: block;
     margin-bottom: 5px;
     font-weight: 500;
 }

 .form-control {
     width: 100%;
     padding: 12px;
     border: 1px solid #ddd;
     border-radius: 5px;
     font-size: 16px;
 }

 textarea.form-control {
     min-height: 120px;
     resize: vertical;
 }

 /* 联系我们 */
 /*#contact {*/
 /*    background-color: var(--light-color);*/
 /*}*/

 .contact-container {
     display: flex;
     gap: 10px;
 }

 .contact-info,
 .contact-form {
     flex: 1;
 }

 .info-item {
     display: flex;
     align-items: center;
     margin-bottom: 20px;
 }

 .info-icon {
     width: 40px;
     height: 40px;
     background-color: var(--primary-color);
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     margin-right: 15px;
     color: white;
 }

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

 .form-group label {
     display: block;
     margin-bottom: 5px;
     font-weight: 500;
 }

 .form-control {
     width: 100%;
     padding: 12px;
     border: 1px solid #ddd;
     border-radius: 5px;
     font-size: 16px;
 }

 textarea.form-control {
     min-height: 120px;
     resize: vertical;
 }

 /* 页脚 */
 footer {
     background: linear-gradient(to right, var(--foot-L-color), var(--foot-color));
     color: white;
     padding: 20px 0;
     text-align: center;
 }

 .footer-content {
     display: flex;
     flex-direction: column;
     align-items: center;
 }

 .social-links {
     display: flex;
     gap: 15px;
     margin: 20px 0;
 }

 .social-links a {
     color: white;
     font-size: 1.02rem;
 }

 /* 响应式设计 */
 @media (max-width: 768px) {

     .about-content,
     .contact-container {
         flex-direction: column;
     }

     .nav-links {
         display: none;
         /* 简化响应式导航，实际应使用汉堡菜单 */
     }
 }

 /* 首页英雄图片 */
 #home {
     margin-top: 60px;
     /* 避开固定导航 */
 }

 /* 首页英雄图片 */
 .article-detail {
     margin-top: 60px;
     /* 避开固定导航 */
 }

 section {
     scroll-margin-top: 70px;
     /* 导航栏高度 + 适当间距 */
 }

/* hero-image 容器高度由内容撑开，不固定高度 */
.hero-image {
    width: 100%;
    overflow: hidden;   /* 防止溢出 */
    padding: 0 10px;    /* 可选：左右留空 */
    height: auto;       /* 高度随图片自动撑开 */
    box-sizing: border-box;
}

.hero-image img {
    width: 100%;        /* 宽度自适应容器 */
    height: auto;       /* 高度按比例自动缩放 */
    display: block;
    object-fit: contain; /* 保持图片原始比例 */
}


/* ===== 手机端 ===== */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    flex-direction: column;
    width: 200px;
    padding: 10px;
    gap: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: none;
    z-index: 999;
  }

  .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  
}

 /* 文字层叠在图片上 */
 .hero-caption {
     position: absolute;
     top: 75%;
     left: 50%;
     transform: translate(-50%, -50%);
     color: white;
     text-align: center;
 }

 .hero-caption h1 {
     font-size: 2.5rem;
     margin-bottom: 20px;
     text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
 }

 .hero-caption p {
     font-size: 1.2rem;
     margin-bottom: 20px;
     text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
 }

 .hero-caption .btn {
     padding: 12px 30px;
     border-radius: 30px;
     font-weight: bold;
     text-decoration: none;
     background-color: white;
     color: #4fc3f7;
     transition: all 0.3s;
 }

 .hero-caption .btn:hover {
     background-color: #0288d1;
     color: white;
 }



 .product-content .btn {
     display: inline-block;
     margin-top: 10px;
     padding: 8px 20px;
     background-color: var(--primary-color);
     color: white;
     border-radius: 5px;
     text-decoration: none;
     transition: background 0.3s;
 }