/* 公司介绍页面样式 */
.container {
  display: flex; /* 使用flex布局 */
  margin-top: 20px;
  gap: 30px; /* 添加间距 */
  align-items: stretch; /* 确保子元素高度一致 */
}

/* 左侧导航栏 */
.sidebar::before {
content: '';
position: absolute;
right: 8px;
top: 0;
bottom: 0;
width: 2px; /* 线条宽度 */
border-left: 2px dashed #333; /* 使用虚线 */
}

.sidebar {
  position: relative; /* 改为相对定位 */
  width: 250px;
  flex-shrink: 0; /* 防止侧边栏被压缩 */
  background-color: transparent; /* 完全透明背景 */
  box-shadow: none; /* 移除阴影 */
  border-radius: 0; /* 移除圆角 */
  z-index: 100;
  -webkit-backdrop-filter: none;
  backdrop-filter: none; /* 移除背景模糊效果 */
  border: none; /* 移除边框 */
  transition: all 0.3s ease; /* 平滑过渡 */
  margin-top: 40px; /* 增加顶部外边距，调整位置 */
  padding: 30px 25px;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-item::before {
content: '';
position: absolute;
right: -18px; /* 点的位置 */
top: 50%;
transform: translateY(-50%);
width: 8px; /* 点的大小 */
height: 8px;
background-color: #333; /* 点的颜色 */
border-radius: 50%; /* 圆形 */
transition: transform 0.3s ease, background-color 0.3s ease;
}

.sidebar-item::after{
content: none;
}

.sidebar-item.active::after {
content: '';
position: absolute;
right: -24px; /* 圆圈的位置，略大于点的位置 */
top: 50%;
transform: translateY(-50%);
width: 16px; /* 圆圈的大小，略大于点的大小 */
height: 16px;
border: 2px dashed #333; /* 圆圈的颜色和宽度 */
border-radius: 50%; /* 圆形 */
transition: transform 0.3s ease, border-color 0.3s ease;
}

.sidebar-item.active::before {
transform: translateY(-50%) scale(1.5); /* 放大选中项的点 */
background-color: #007bff; /* 选中项的点颜色 */
}

/* 定义旋转动画 */
@keyframes rotate {
from {
  transform: translateY(-50%) scale(1.2) rotate(0deg);
}
to {
  transform: translateY(-50%) scale(1.2) rotate(360deg);
}
}

.sidebar-item.active::after {
border-color: #007bff; /* 选中项的圆圈颜色 */
transform: translateY(-50%) scale(1.2); /* 放大选中项的圆圈 */
animation: rotate 4s infinite linear; /* 应用旋转动画 */
}


.sidebar-item {
  margin-bottom: 10px;
  position: relative;
}

.sidebar-link {
  display: block;
  padding: 12px 15px;
  color: #333;
  text-decoration: none;
  border-radius: 8px; /* 保留导航项圆角 */
  transition: all 0.3s ease; /* 平滑过渡 */
  font-size: 16px;
  font-weight: 500;
  position: relative;
  border-left: 3px solid transparent;
  margin-bottom: 15px;
  transition: all 0.3s;
  text-align: right;
}

.sidebar-link:hover {
  background-color: rgba(85, 86, 87, 0.068); /* 悬停背景色 */
  color: #000000;
  transform: translateX(5px); /* 悬停时向右移动 */
}

.sidebar-item.active .sidebar-link {
  color: #333; /* 深色文字 */
  background-color: rgba(211, 211, 211, 0.4);
  font-weight: bold;
}

.sidebar-item.active .sidebar-link::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.sidebar-link:hover {
background-color: rgba(85, 86, 87, 0.1);
border-left-color: #888;
color: #333;
}


.nav-link.active {
  background-color: rgba(255, 255, 255, 0.1); /* 高亮背景色 */
  border-radius: 4px; /* 圆角 */
}

.service-title {
  position: relative;
  font-size: 2em; /* 根据需要调整大小 */
}

.service-title-en {
  position: absolute;
  left: 0;
  top: 120%; /* 增加距离，确保在中文标题正下方 */
  transform: translateY(0);
  font-size: 0.9em;
  color: rgba(104, 102, 102, 0.5);
}

@media (max-width: 768px) {
  .service-title {
      font-size: 1.5em; /* 在移动设备上减小标题字体大小 */
  }
  
}

/* 右侧内容 */
.main-content {
  flex: 1; /* 占据剩余空间 */
  margin-left: 40px;
  padding: 20px;
  min-width: 0; /* 防止内容溢出 */
  margin-top: 40px;/* 网格项顶部外边距为40px */
  background-color: #ffffff; /* 设置背景颜色为白色 */
}

/* 公司简介 */
.company-intro {
  margin-bottom: 40px;
}

.about-line {
  height: 1px;
  background-color: #a7a1a1;
  flex: 1;
  max-width: 90%;
  position: relative;
}
.intro-content {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

.intro-text {
  flex: 1; /* 占据剩余空间 */
  line-height: 1.8; /* 增加行高 */
  color: #444; /* 使用深灰色以提高可读性 */
  margin-bottom: 20px; /* 增加底部间距 */
  padding: 10px; /* 添加内边距 */
  background-color: rgba(255, 255, 255, 0.9); /* 添加轻微的白色背景 */
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.features-list li {
  padding: 12px 20px; /* 增加内边距 */
  margin-bottom: 15px; /* 增加底部间距 */
  background-color: rgba(240, 240, 240, 0.8); /* 使用浅灰色背景 */
  border-left: 4px solid #007bff; /* 深蓝色左边框 */
  border-radius: 4px; /* 圆角效果 */
  transition: background-color 0.3s; /* 添加过渡效果 */
}

.features-list li:hover {
  background-color: rgba(220, 220, 220, 0.9); /* 悬停时背景颜色变化 */
}


.intro-image img {
  width: 100%;/* 图片宽度为100% */
  border-radius: 8px; /* 图片圆角为8px */
}



/* 集团公司样式 */
.group-company {
  margin-bottom: 40px;/* 集团公司模块底部外边距为40px */
}

.group-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));/* 网格布局，每列最小宽度为300px，最大宽度为1fr */
  gap: 30px;/* 网格项之间的间距为30px */
  margin-top: 40px;/* 网格项顶部外边距为40px */
}

.group-card {
  background-color: #fff; /* 卡片背景颜色为白色 */
  padding: 20px;/* 卡片内边距为20px */
  border-radius: 8px;/* 卡片圆角为8px */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);/* 卡片阴影效果 */
  text-align: center;/* 卡片文本居中对齐 */
  transition: transform 0.3s ease;/* 卡片悬停效果 */
}

.group-card:hover {
  transform: translateY(-5px);/* 卡片悬停时向上移动5px */
}

.group-card img {
  width: 100px;/* 图片宽度为100px */
  height: 100px;/* 图片高度为100px */
  border-radius: 50%;/* 图片圆角为50% */
  object-fit: cover;/* 图片对象适应 */
  margin-bottom: 15px;/* 图片底部外边距为15px */
}

.group-card h3 {
  margin: 10px 0 5px;/* 标题外边距为10px */
  color: #333;/* 标题颜色为深色 */
}

.group-card p {
  color: #666;/* 段落颜色为灰色 */
  font-size: 14px;/* 段落字体大小为14px */
}




/* 分公司模块样式 */
.branches-wrapper {
  width: 100%;/* 分公司模块宽度为100% */
  overflow: hidden;/* 超出内容隐藏 */
  margin-top: 30px;/* 分公司模块顶部外边距为30px */
}

.branches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));/* 网格布局，每列最小宽度为300px，最大宽度为1fr */
  gap: 30px;/* 网格项之间的间距为30px */
  padding: 20px 0;/* 全国团队模块内边距为20px */
}

.branch-card {
  background-color: #fff;/* 卡片背景颜色为白色 */
  border-radius: 12px; /* 圆角 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* 阴影 */
  overflow: hidden;/* 超出内容隐藏 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;/* 卡片悬停效果 */
  height: 600px; /* 增加高度到600px */
  display: flex; /* 使用弹性布局 */
  flex-direction: column; /* 垂直布局 */
}

.branch-header {
  position: relative;
  flex: 1; /* 头部占据更多空间 */
  display: flex; /* 使用弹性布局 */
  align-items: center; /* 垂直居中对齐 */
  justify-content: center; /* 水平居中对齐 */
  height: 150px; /* 增加标题区域高度 */
}

.branch-header img {
  width: 100%;/* 图片宽度为100% */
  height: 300px; /* 增加图片高度 */
  object-fit: cover;/* 图片对象适应 */
  transition: transform 0.3s ease;/* 卡片悬停效果 */
}

.branch-card:hover .branch-header img {
  transform: scale(1.05); /* 悬停时图片放大 */
}

.branch-header h3 {
  position: absolute;/* 绝对定位 */
  bottom: 0;/* 底部对齐 */
  left: 0;/* 左侧对齐 */
  right: 0;/* 右侧对齐 */
  background-color: rgba(0, 0, 0, 0.7); /* 半透明背景 */
  color: white;/* 文字颜色为白色 */
  margin: 0;/* 外边距为0 */
  padding: 15px;/* 内边距为15px */
  font-size: 15px;/* 字体大小为18px */
  text-align: center;/* 文本居中对齐 */
  line-height: 1.2; /* 调整行高 */
}

.branch-info {
  padding: 20px;/* 内边距为20px */
  flex: 1; /* 信息部分占据剩余空间 */
  display: flex;/* 使用弹性布局 */
  flex-direction: column;/* 垂直布局 */
}

.branch-info p {
  margin: 10px 0; /* 段落外边距为10px */
  color: #666;/* 段落颜色为灰色 */
  font-size: 14px;/* 段落字体大小为14px */
  line-height: 1.6;/* 行高为1.6 */
}

.branch-info strong {
  color: #333;/* 标题颜色为深色 */
  font-weight: 500;/* 字体加粗 */
}


/* 响应式调整 */
@media (max-width: 768px) {
  .container {
      flex-direction: column;/* 垂直布局 */
      margin-top: 2px !important;
  }

  .sidebar {
      position: static; /* 静态定位 */
      width: 100%; /* 宽度为100% */
      margin-top: 5px; /* 缩短左侧导航栏与上方横幅之间的距离 */
      padding: 10px; /* 添加内边距以增加导航栏的长度 */
      box-sizing: border-box; /* 确保内边距不影响总宽度 */
  }

  .sidebar-link{
    text-align: left !important;
  }
  .sidebar::before {
    border-left: none; /* 移除虚线 */
  }

  .sidebar-item::before {
    display: none;
  }
  .sidebar-item::after {
    display: none; /* 移除圆圈 */
  }

  .sidebar-link:hover {
      transform: none; /* 移动端取消悬停移动效果 */
  }

  .main-content {
      margin-left: 0;/* 左侧外边距为0 */
      margin-top: 1px; /* 缩短左侧导航栏与下面文本之间的距离 */
  }

  .intro-content {
      flex-direction: column;/* 垂直布局 */
  }

  .intro-image {
      width: 100%;/* 图片宽度为100% */
  }

  .group-content,
  .team-grid {
      grid-template-columns: 1fr;/* 网格布局，每列最小宽度为1fr */
  }

  .branches {
      grid-template-columns: 1fr;/* 网格布局，每列最小宽度为1fr */
      gap: 20px;/* 网格项之间的间距为20px */
  }

  .branch-header h3 {
      font-size: 12px !important;/* 字体大小为16px */
      padding: 10px;/* 内边距为10px */
  }

  .branch-info {
      padding: 15px;/* 内边距为15px */
  }

  .team-grid {
      grid-template-columns: 1fr;/* 网格布局，每列最小宽度为1fr */
  }

  .sidebar-nav {
      margin-bottom: 10px; /* 确保与下面内容的间距 */
  }

  .sidebar-nav-list {
      list-style: none; /* 去掉默认的列表样式 */
      padding: 0; /* 去掉内边距 */
      margin: 0; /* 去掉外边距 */
      display: flex; /* 横向排列 */
  }

  .sidebar-item {
      margin: 0 15px; /* 左右间距 */
  }

  .sidebar-link {
      text-decoration: none; /* 去掉下划线 */
      color: #333; /* 链接颜色 */
      font-weight: bold; /* 加粗字体 */
      padding: 12px 15px; /* 内边距 */
      border-radius: 8px; /* 圆角效果 */
      transition: background-color 0.3s; /* 添加过渡效果 */
  }

  .sidebar-link:hover {
      background-color: rgba(85, 86, 87, 0.068); /* 悬停背景色 */
      color: #000000; /* 悬停时文字颜色 */
  }

  .team-description {
    font-size: 14px !important;
  }
}




/* 全国团队描述文本样式 */
.team-description {
  font-size: 17px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px; /* 与图片保持间距 */
  text-align: left; /* 确保左对齐 */
}



/* 全国团队分布图样式 */
.team-distribution-image {
  width: 100%; /* 图片占满容器宽度 */
  max-width: 800px; /* 图片最大宽度 */
  height: auto; /* 保持图片比例 */
  display: block; /* 确保图片居中 */
  margin: 0 0 20px; /* 去掉 auto，图片左对齐 */
  border-radius: 0; /* 去掉圆角效果 */
  box-shadow: none; /* 去掉阴影效果 */
}

/* 新增文本样式 */
.team-stats {
  font-size: 16px;/* 字体大小为16px */
  line-height: 1.6;/* 行高为1.6 */
  color: #333; /* 确保文本颜色为深色 */
  text-align: left; /* 左对齐 */
  background-color: transparent; /* 确保背景透明 */
}

/* 数字放大标红样式 */
.highlight {
  font-size: 24px; /* 放大字体 */
  color: red; /* 标红 */
  font-weight: bold; /* 加粗 */
}

/* 通用图片样式（仅适用于特定容器） */
.about-section img,
.group-section img,
.team-section img {
  max-width: 100%; /* 确保图片不超过容器宽度 */
  height: auto; /* 保持图片比例 */
  display: block; /* 确保图片是块级元素 */
  margin: 20px 0; /* 图片与上下文本保持间距 */
  padding: 0; /* 去掉默认的 padding */
  box-sizing: border-box; /* 确保 padding 和 border 不增加宽度 */
}


/* 学习更多按钮样式 */
.learn-more-btn {
  display: inline-block; /* 使按钮为块级元素 */
  padding: 10px 20px; /* 内边距 */
  background-color: transparent; /* 按钮背景色 */
  color: rgb(59, 59, 59); /* 按钮文字颜色 */
  border: 2px solid rgb(68, 68, 68); /* 设置黑色边框，宽度为2px */
  border-radius: 5px; /* 圆角 */
  text-decoration: none; /* 去掉下划线 */
  transition: background-color 0.3s; /* 添加过渡效果 */
  margin-top: 20px; /* 增加顶部间距 */
  font-size: 16px; /* 字体大小 */
  font-weight: bold; /* 加粗字体 */
}

.learn-more-btn:hover {
  background-color: #3f3e3e; /* 悬停时按钮颜色 */
  color: rgb(255, 255, 255); /* 按钮文字颜色 */
}

/* 添加到about.css末尾 - 美化关于我们页面 */

/* 整体背景和排版优化 */
body {
background-color: #f9f9f9;
color: #333;
}


@media (max-width: 768px) {
.company-intro h1.service-title {
  font-size: 1.5em;
  position: relative;
  display: inline-block;
}

.about-line {
  height: 1px;
  background-color: #a7a1a1;
  flex: 1;
  max-width: 90%;
  position: relative;
}

.intro-text{
  margin-bottom: 1px !important;
}
.learn-more-container {
  margin-top: 10px !important;
}

.learn-more-btn {
  font-size: 14px !important;
  margin-top: 10px !important;
}
}

.company-intro h1.service-title:hover::after {
width: 100%;
}

/* 装饰线条优化 */
.about-line {
height: 1px;
background: linear-gradient(90deg, rgba(167, 161, 161, 0.8), rgba(167, 161, 161, 0.2));
margin-bottom: 20px;
}

/* 内容区域美化 */

.intro-text p {
margin-bottom: 18px;
font-size: 17px;
opacity: 0;
transform: translateY(20px);
animation: fadeInUp 0.6s ease forwards;
animation-delay: calc(0.1s * var(--p-index, 1));
}

@media (max-width: 768px) {
.intro-text p {
  margin-bottom: 18px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: calc(0.1s * var(--p-index, 1));
}

.features-list li {
  padding: 15px 20px;
  margin-bottom: 12px;
  background-color: rgba(255, 255, 255, 0.6);
  border-left: 4px solid #666;
  border-radius: 4px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  opacity: 0;
  transform: translateX(-20px);
  animation: fadeInLeft 0.5s ease forwards;
  animation-delay: calc(0.1s * var(--li-index, 1));
  font-size: 14px;
}
}

.intro-text p:nth-child(1) { --p-index: 1; }
.intro-text p:nth-child(2) { --p-index: 2; }
.intro-text p:nth-child(3) { --p-index: 3; }

/* 图片样式优化 */
.intro-image {
position: relative;
overflow: hidden;
border-radius: 8px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
transform: translateY(20px);
opacity: 0;
animation: fadeInUp 0.6s ease forwards 0.4s;
margin-top: 20px;
}

.intro-image img {
width: 100%;
height: auto;
transition: transform 0.6s ease;
}

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

.intro-image::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.1));
pointer-events: none;
}



/* 特性列表美化 */
.features-list {
margin: 25px 0;
}

.features-list li {
padding: 15px 20px;
margin-bottom: 12px;
background-color: rgba(255, 255, 255, 0.6);
border-left: 4px solid #666;
border-radius: 4px;
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
transition: all 0.3s;
opacity: 0;
transform: translateX(-20px);
animation: fadeInLeft 0.5s ease forwards;
animation-delay: calc(0.1s * var(--li-index, 1));
}

.features-list li:nth-child(1) { --li-index: 1; }
.features-list li:nth-child(2) { --li-index: 2; }
.features-list li:nth-child(3) { --li-index: 3; }
.features-list li:nth-child(4) { --li-index: 4; }

.features-list li:hover {
background-color: rgba(255, 255, 255, 0.9);
transform: translateX(5px);
border-left-color: #333;
}

/* 服务承诺列表强调 */
.features-list li:nth-child(n+5) {
padding-left: 35px;
position: relative;
border-left-color: #888;
}

.features-list li:nth-child(n+5)::before {
position: absolute;
left: 10px;
color: #333;
font-weight: bold;
}

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

@keyframes fadeInLeft {
from {
  opacity: 0;
  transform: translateX(-20px);
}
to {
  opacity: 1;
  transform: translateX(0);
}
}

/* 响应式优化 */
@media (max-width: 768px) {
.main-content {
  padding: 15px;
}

.intro-content {
  gap: 20px;
}

.intro-text {
  padding: 20px 15px;
}

}


