body {
    margin: 0;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth; /* 启用平滑滚动 */
}

/* 桌面端左边距 */
.nav-link.first-item {
    margin-left: 60px;  /* 主间距 */
    position: relative;
}

/* 左侧装饰线（可选） */
.nav-link.first-item::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 50%;
    height: 60%;
    width: 1px;
    background: rgba(0,0,0,0.2);
    transform: translateY(-50%);
}

/* 修改导航容器样式 */
.nav-container {
    display: flex;
    padding-left: 90px; /* 整体向右移动 */
    justify-content: flex-start; /* 改为从左开始排列 */
}

/* 首项特殊间距 */
.nav-link:first-child {
    margin-left: 40px; /* 在整体偏移基础上再增加间距 */
}

/* 移除原有.first-item类相关样式 */

/* 响应式适配 */
@media (max-width: 768px) {
    .nav-link.first-item {
        margin-left: 20px;  /* 移动端缩小间距 */
    }
    
    .nav-link.first-item::before {
        display: none;  /* 移动端隐藏装饰线 */
    }
}

/* 导航栏样式 */
/* ================= 导航栏优化方案 ================= */
.navbar {
    background: linear-gradient(
        135deg, /* 改为斜角渐变 */
        #7FB5D6 0%,         /* 更饱和的蓝色 */
        #A0D8EF 30%,       /* 柔和的天蓝色 */
        #E8F4FF 70%,       /* 带蓝调的浅白色 */
        #F8F9FA 100%       /* 暖白色 */
    );
    padding: 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem; /* 替代margin间隔 */
}

.navbar a {
    /* 字体优化 */
    font-family: 
        'Segoe UI', 
        system-ui, 
        -apple-system, 
        BlinkMacSystemFont, 
        'Roboto', 
        sans-serif; /* 现代无衬线字体 */
    font-size: 1.1rem; /* 基准字号增大 */
    font-weight: 600; /* 中等字重 */
    letter-spacing: 0.03em; /* 适当字间距 */
    line-height: 1.3; /* 优化行高 */
    
    /* 原有样式保持不变 */
    color: rgba(0, 0, 0, 0.9); /* 增加对比度 */
    padding: 0.8rem 1.8rem; /* 增大左右间距 */
    text-decoration: none;
    border-radius: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 悬浮效果 */
.navbar a:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #2c5282;
    box-shadow: 0 4px 12px rgba(38, 132, 212, 0.2);
    transform: translateY(-2px);
}

/* 激活状态 */
.navbar a.active {
    background: linear-gradient(45deg, #2c5282, #4299e1);
    color: white !important;
    box-shadow: 0 4px 14px rgba(66, 153, 225, 0.4);
}

/* 点击效果 */
.navbar a:active {
    transform: scale(0.95) translateY(0);
    transition-duration: 0.1s;
}

/* 悬浮下划线动画 */
.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #4299e1;
    transition: all 0.3s ease;
}

.navbar a:hover::after {
    width: calc(100% - 2rem);
    left: 1rem;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .navbar a {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}

/* 头部容器 */
.header-container {
    position: relative;
    height: 200px; /* 根据需求调整高度 */
    overflow: hidden;
}

/* 背景图样式 */
.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/9 (2).png');
    background-size: cover;
    background-position: center;
    filter: brightness(0.8); 
    z-index: 1;
}
/* .header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        #2A6DB3 0%,   
        #9FD8F0 100%  
    );
    filter: brightness(1.05) contrast(1.08);
    z-index: 1;
    box-shadow: inset 0 8px 25px rgba(42,109,179,0.15); 
} */



/* LOGO容器 */
.header-logo {
    position: absolute;
    left: 5%; /* 左侧留空比例 */
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    transition: all 0.3s;
}

/* LOGO图片 */
.header-logo img {
    height: 60px; /* 根据需求调整 */
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5)); /* 添加投影 */
}

/* 导航栏位置调整 */
.navbar {
    position: relative; /* 改为相对定位 */
    z-index: 3;
    margin-top: -20px; /* 与背景图重叠部分 */
}

/* 响应式适配 */
@media (max-width: 768px) {
    .header-container {
        height: 200px;
    }
    
    .header-logo {
        left: 3%;
    }
    
    .header-logo img {
        height: 50px;
    }
    
    .navbar {
        margin-top: 0;
    }
}

.content-image-container {
  max-width: 700px;
  margin: 30px auto;
  padding: 0 20px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;  /* 隐藏超出容器的图片 */
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;  /* 确保只显示一张图片 */
}

.centered-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
  flex-shrink: 0; /* 禁止图片缩小 */
}

/* 响应式调整 */
@media (max-width: 768px) {
  .content-image-container {
    margin: 20px auto;
    border-radius: 0;
  }

  .centered-image {
    max-height: 300px;
    object-fit: cover;
  }
}

/* 悬停放大效果 */
.centered-image:hover {
  transform: scale(1.02);
}

.prev, .next {
  position: absolute;
  top: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 100;
  transform: translateY(-50%);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* 为已有导航栏添加下间距 */
.navbar {
  margin-bottom: 30px;
}

/* 公司简介样式 */
.company-profile {
    background: #f9f9f9;
    padding: 60px 20px;
    position: relative;
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* 高新技术企业徽章 */
.company-badge {
    position: absolute;
    right: 0;
    top: -25px;
    background: #2c3e50;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 主标题样式 */
.profile-title {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2em;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-decor {
    display: inline-block;
    width: 40px;
    height: 2px;
    background: #e74c3c;
    margin: 0 20px;
}

/* 基本信息模块 */
.profile-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.meta-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.meta-item h3 {
    color: #e74c3c;
    margin-bottom: 8px;
}

.meta-item p {
    color: #666;
    font-size: 1.1em;
}

/* 内容区块 */
.profile-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .profile-content {
        grid-template-columns: 1fr;
    }
}

/* 特色列表 */
.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1em;
    color: #444;
}

.feature-list li span {
    margin-right: 15px;
    color: #e74c3c;
}

/* 核心理念引用 */
.core-idea {
    background: #2c3e50;
    color: white;
    padding: 30px;
    border-radius: 10px;
    font-size: 1.4em;
    line-height: 1.6;
    margin: 20px 0;
    position: relative;
}

.core-idea footer {
    text-align: right;
    font-size: 0.8em;
    color: #bdc3c7;
    margin-top: 15px;
}

/* 技术标签 */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tech-tags span {
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

/* 愿景板块 */
.vision-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.vision-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.vision-item {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s;
}

.vision-item:hover {
    transform: translateY(-5px);
}

.vision-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

/* 强调文本 */
.emphasis {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 25px;
}

/* 底部背景图及文字样式 */
.footerPng {
  position: relative;
  width: 100%;
  height: 100%;
  height: 140px; /* 自定义高度（根据需要修改此值） */
  background-image: url('../img/back.png');
  background-size: cover;
  background-position: center bottom; /* 始终显示图片下半部分 */
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end; /* 内容从底部开始布局 */
  padding: 40px 30px; /* 底部留出安全间距 */
  overflow: hidden;
}

.footerPng::before {
  content: "";
  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.4) 60%,
    transparent 100%
  ); /* 渐变蒙版突出底部 */
  z-index: 1;
}

.footerPng-text {
  position: relative;
  z-index: 2;
  font-size: 3rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 4px 6px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  line-height: 1.4;
  padding-bottom: 40px; /* 与底部的间距 */
}

/* 响应式优化 */
@media (max-width: 992px) {
  .footerPng {
    height: 300px;
  }
  
  .footerPng-text {
    font-size: 2.2rem;
    padding-bottom: 28px;
  }
}

@media (max-width: 768px) {
  .footerPng {
    height: 200px;
    background-position: center 70%; /* 移动端调整截取位置 */
  }
  
  .footerPng-text {
    font-size: 1.6rem;
    padding: 0 20px 20px;
    white-space: normal;
    max-width: 100%;
  }
  
  .footerPng::before {
    background: linear-gradient(
      to top,
      rgba(0,0,0,0.8) 0%,
      rgba(0,0,0,0.4) 40%,
      transparent 100%
    );
  }
}

.footer {
    background: white; /* 与导航栏起始色一致 */
    padding: 1.2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.copyright p {
    color: #888888;
    text-align: center;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* 备案号链接特效 */
.icp-link {
    color: #87CEEB !important; /* 与导航栏渐变色一致 */
    text-decoration: none;
    position: relative;
    padding: 0 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icp-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.icp-link:hover {
    text-shadow: 0 0 8px rgba(135,206,235,0.3);
}

.icp-link:hover::after {
    width: 100%;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .copyright p {
        font-size: 0.8rem;
        padding: 0 15px;
    }
    
    .icp-link {
        display: inline-block;
        margin-top: 3px;
    }
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', sans-serif;
}