/* about-banner.css 只用于 about.html 顶部横幅区域 */
/* 字体声明已移至 css/common/fonts.css 统一管理 */

.banner-section {
  position: relative;
  min-height: 644px;
  background: linear-gradient(180deg,
      rgba(240, 245, 255, 1) 0%,
      rgba(240, 245, 255, 0.9) 100%);
  display: flex;
  align-items: center;
  padding: 80px 20px;
  overflow: hidden;
  margin-top: -80px;
}

.banner-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../images/index/hf.jpg") no-repeat center center;
  background-size: cover;
  opacity: 0.8;
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 1920px;
  margin-left: 15%;
}

.banner-title {
  font-family: var(--font-heading);
  font-size: 48px;
  color: #0066ff;
  margin-bottom: 72px;
  line-height: 1.2;
}

.banner-subtitle {
  font-size: 36px;
  color: #333333;
  margin-bottom: 72px;
  font-family: var(--font-heading);
}

.banner-btn-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #0066ff;
  font-size: 16px;
  gap: 10px;
  background: #ecf5fc;
  width: fit-content;
  border: 1px solid #0066ff;
  border-radius: 3px;
  padding: 10px 20px;
}

@media (max-width: 768px) {
  .banner-title {
    font-size: 32px;
  }

  .banner-subtitle {
    font-size: 20px;
  }
}

/* 公司介绍区域样式 */
.about-intro {
  padding: 60px 0 0 0;
  background: #f4f6fb;
}

.about-intro-title {
  text-align: center;
  font-size: 32px;
  font-weight: bold;
  color: #222;
  margin-bottom: 8px;
  font-family: var(--font-medium);
}

.about-intro-subtitle {
  text-align: center;
  font-size: 16px;
  color: #888;
  margin-bottom: 32px;
  font-family: var(--font-light);
}

.about-intro-content {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  border-radius: 1px;
  /* box-shadow: 0 0 0 1.5px #e3e8f7; */
  display: flex;
  align-items: center;
  padding: 0 18px 0 0;
  height: 400px;
}

.about-intro-img-box {
  flex: 0 0 460px;
  border-radius: 8px;
  position: relative;
  left: -26px;
  top: 10px;
  min-width: 320px;
  min-height: 200px;
}

.about-intro-img-box img {
  width: 95%;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.about-intro-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-intro-company {
  color: #0D7DFC;
  font-size: 18px;
  font-family: var(--font-medium);
  text-align: center;
  width: 100%;
  margin-bottom: 20px;
  margin-top: 10px;
}

.about-intro-stats {
  display: flex;
  gap: 48px;
  margin-bottom: 20px;
  justify-content: center;
  width: 100%;
}

.about-intro-stat {
  text-align: center;
}

.about-intro-stat-num {
  color: #0D7DFC;
  font-size: 36px;
  font-family: var(--font-number);
}

.about-intro-stat-label {
  color: #333333;
  font-size: 16px;
  margin-top: 4px;
  font-family: var(--font-light);
}

.about-intro-desc {
  color: #333333;
  font-size: 14px;
  line-height: 2;
  font-family: var(--font-light), sans-serif;
  text-indent: 2em;
}

.about-intro-desc p {
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .about-intro-content {
    flex-direction: column;
    padding: 32px 12px;
    gap: 24px;
  }

  .about-intro-img-box {
    min-width: 220px;
    min-height: 220px;
    width: 100%;
  }
}

/* 企业文化区域样式 */
.about-culture {
  padding: 60px 0 0 0;
  background: #f4f6fb;
}

.about-culture-title {
  text-align: center;
  font-size: 32px;
  font-weight: bold;
  color: #222;
  margin-bottom: 8px;
  font-family: var(--font-medium), sans-serif;
}

.about-culture-subtitle {
  text-align: center;
  font-size: 16px;
  color: #888;
  margin-bottom: 32px;
  font-family: var(--font-light), sans-serif;
}

.about-culture-cards {
  max-width: 1400px;
  /* 增加宽度 */
  margin: 0 auto;
  display: flex;
  gap: 32px;
  /* 适当增加间距 */
  justify-content: center;
  padding: 0 40px;
}

.about-culture-card {
  flex: 1;
  background: linear-gradient(90deg, #FFFFFF 0%, #F2F5FF 100%);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  padding: 25px 20px;
  /* 增加内边距 */
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  border: 1px solid #edf2f7;
}

.about-culture-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #dbeafe;
}

.about-culture-card-top {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}

.about-culture-icon {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
}

.about-culture-icon img {
  width: 36px;
  height: 36px;
}

.about-culture-card-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
  padding-top: 4px;
}

.about-culture-card-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  font-family: var(--font-medium), sans-serif;
}

.about-culture-card-desc {
  font-size: 15px;
  color: #444;
  font-family: var(--font-primary), sans-serif;
  line-height: 1.2;
}

.about-culture-card-subdesc {
  font-size: 14px;
  color: #888;
  line-height: 2;
  /* 调大行距还原细腻质感 */
  font-family: var(--font-light), sans-serif;
}

@media (max-width: 1200px) {
  .about-culture-card-top {
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .about-culture-cards {
    flex-direction: column;
    gap: 20px;
  }
}

/* 公司历程区域样式 */
.about-history {
  padding: 60px 0 0 0;
  /* background: #fff; */
  position: relative;
  overflow: hidden;
  margin-top: 100px;
}

.about-history-title {
  text-align: center;
  font-size: 32px;
  font-weight: bold;
  color: #222;
  margin-bottom: 8px;
  font-family: var(--font-medium), sans-serif;
}

.about-history-subtitle {
  text-align: center;
  font-size: 16px;
  color: #888;
  margin-bottom: 32px;
  font-family: var(--font-light), sans-serif;
}

.about-history-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 140px;
  bottom: 0;
  z-index: 0;
  background: url(../images/about/lcbg.webp) no-repeat center center;
  /* 背景图片后期补上 */
  background-position: 0 0;
  background-size: cover;
  opacity: 0.7;
  pointer-events: none;
}

.history-curve-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 900px;
  overflow: visible;
}

.history-curve-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

@media (max-width: 1400px) {
  .history-curve-wrapper {
    height: 900px;
  }
}

@media (max-width: 768px) {
  .history-curve-wrapper {
    height: 600px;
  }
}

.history-nodes-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.history-node-item {
  position: absolute;
  pointer-events: auto;
  transform: translate(-50%, -50%); /* 中心对齐主线上的坐标点 */
}

.node-content-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* 改为左对齐 */
  padding: 12px;
  background: transparent;
  min-width: 120px; /* 进一步减小最小宽度，防止横向堆叠 */
  position: absolute;
  bottom: 90px; /* 位于节点上方 */
  left: 50%;
  transform: translateX(-8px); /* 偏移以对齐虚线与icon中心 */
}

.node-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.node-icon {
  width: 16px;
  height: auto;
}

.node-date {
  font-size: 16px;
  font-weight: normal;
  color: #0D7DFC;
  font-family: var(--font-primary), sans-serif;
  white-space: nowrap;
}

.node-desc {
  font-size: 14px;
  color: #333;
  font-family: var(--font-primary), sans-serif;
  white-space: normal; /* 允许换行防止重叠 */
  text-align: left; /* 确保文字左对齐 */
  max-width: 260px; /* 限制最大宽度 */
}

.node-desc1 {
  font-size: 14px;
  color: #333;
  font-family: var(--font-primary), sans-serif;
  white-space: normal; /* 允许换行防止重叠 */
  text-align: left; /* 确保文字左对齐 */
  padding-left: 32px;
}

.node-desc2 {
  font-size: 14px;
  color: #333;
  font-family: var(--font-primary), sans-serif;
  white-space: normal; /* 允许换行防止重叠 */
  text-align: left; /* 确保文字左对齐 */
  padding-right: 32px;
}

.node-vertical-line {
  position: absolute;
  bottom: 12px;
  left: 50%;
  width: 1.5px;
  height: 80px;
  border-left: 1.5px dashed #0D7DFC;
  transform: translateX(-50%);
}

.history-image-node {
  position: absolute; /* 绝对定位以实现精确中心对齐 */
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  width: 24px;
  height: auto;
  transition: all 0.3s ease;
  z-index: 2;
}

.history-image-node img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(13, 125, 252, 0.3));
}

.history-node-item:hover .history-image-node {
  transform: translate(-50%, -50%) scale(1.2);
}

.history-module-node:hover .history-image-node {
  transform: translate(-50%, -50%) scale(1.2);
}

.history-node-item:hover .node-content-box {
  transform: translateX(-8px) translateY(-5px);
  transition: all 0.3s ease;
}

/* 第一行六个节点的经典对齐样式 (居中对齐) */
.classic-node .node-content-box {
  align-items: center;
  transform: translateX(-50%);
}

.classic-node .node-desc {
  text-align: center;
  max-width: 130px; /* 限制经典节点的描述宽度，防止横向重叠 */
}

.classic-node:hover .node-content-box {
  transform: translateX(-50%) translateY(-5px);
}

/* 历程模块项样式 - 统一为节点风格 */
.history-module-node {
  position: absolute;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.module-node-content {
  display: flex;
  flex-direction: column; /* 改为纵向排列：头部在一行，描述在下方 */
  align-items: flex-start; /* 默认左对齐，靠近虚线 */
  padding: 12px;
  background: transparent;
  backdrop-filter: none;
  border: none;
  border-radius: 0;
  width: 600px;
  max-width: 40vw; /* 增加最大宽度限制 */
  position: absolute;
  bottom: 40px;
  left: 50%; /* 默认显示在虚线右侧 */
  transform: translateX(-20px); /* 偏移 -20px (padding 12px + icon 8px)，使虚线对齐图标中心 */
  transition: all 0.3s ease;
  box-shadow: none;
  text-align: left; /* 文字默认左对齐 */
}

@media (max-width: 1400px) {
  .module-node-content {
    width: 450px;
  }
}

@media (max-width: 1200px) {
  .module-node-content {
    width: 380px;
  }
  .node-date {
    font-size: 14px;
  }
    .node-desc {
      font-size: 12px;
      max-width: 140px;
    }
    .classic-node .node-desc {
      max-width: 110px; /* 进一步缩小经典节点宽度 */
    }
    .node-content-box {
      min-width: 100px;
    }
}

@media (max-width: 900px) {
  .module-node-content {
    width: 300px;
  }
  .module-node-content .node-desc {
    font-size: 12px;
    line-height: 1.5;
  }
}

/* 左侧对齐样式类 */
.module-node-left .module-node-content {
  right: 50%;
  left: auto;
  transform: translateX(20px);
  align-items: flex-end;
  text-align: right;
}

.module-header-row {
  display: flex;
  flex-direction: row; /* 默认图标在文字左侧 */
  align-items: center;
  gap: 8px; /* 图标与左侧文字的间距 */
  margin-bottom: 6px;
}

/* 左侧对齐时的头部布局 */
.module-node-left .module-header-row {
  flex-direction: row-reverse;
}

.history-module-node:hover .module-node-content {
  transform: translateX(-20px) translateY(-5px);
  background: transparent;
  box-shadow: none;
}

.history-module-node.module-node-left:hover .module-node-content {
  transform: translateX(20px) translateY(-5px);
}

/* 通用样式：使虚线连接到图标且不穿越 */
.node-connect-icon .node-vertical-line {
  display: none; /* 隐藏原生虚线，改用伪元素实现精确对接 */
}

.node-connect-icon .module-node-content::before {
  content: "";
  position: absolute;
  /* 调整 top 值：padding 12px + (header高度24px - icon高度16px)/2 + icon高度16px = 32px */
  /* 精确从图标底部开始 */
  top: 30px; 
  /* 图标宽16px, padding-left 12px, 所以中心在 20px */
  left: 20px; 
  /* 模块容器 bottom 为 40px，菱形节点半高为 12px，所以 -(40-12) = -28px 刚好触达图标顶部 */
  bottom: -28px; 
  width: 0;
  border-left: 1.5px dashed #0D7DFC;
  z-index: -1;
  transition: bottom 0.3s ease; /* 同步容器的悬停位移 */
}

/* 左侧对齐时的虚线位置 */
.module-node-left .module-node-content::before {
  left: auto;
  right: 20px;
}

.history-module-node:hover .module-node-content::before {
  bottom: -33px; /* 容器上移 5px 时，虚线向下延伸 5px 以保持连接在图标顶部 */
}

.node-connect-icon .node-content-box,
.node-connect-icon .module-node-content {
  z-index: 2;
  background: transparent;
}

.module-node-content .node-desc {
  white-space: normal; /* 模块描述允许换行 */
  line-height: 1.8;
  text-align: left; /* 默认左对齐 */
  padding-left: 24px; /* 对齐标题文字 (图标16px + 间距8px) */
  padding-right: 0;
}

/* 左侧对齐时的描述对齐 */
.module-node-left .module-node-content .node-desc {
  text-align: right;
  padding-left: 0;
  padding-right: 24px;
}

/* 移除旧的模块样式 */
.history-module-item {
  display: none;
}

@media (max-width: 1200px) {
  .module-content-box {
    width: 450px;
  }
}

@media (max-width: 768px) {
  .module-content-box {
    width: 320px;
    padding: 16px;
    bottom: 70px;
  }
  .module-img {
    width: 80px;
  }
  .module-header {
    font-size: 15px;
  }
  .module-desc {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .history-image-node {
    width: 18px;
  }
  .node-icon {
    width: 14px;
  }
  .node-date {
    font-size: 14px;
  }
    .node-desc {
      font-size: 11px;
    }
    .classic-node .node-desc {
      max-width: 90px; /* 小屏下更严格限制宽度 */
    }
      .node-content-box {
        min-width: 90px;
        bottom: 70px;
        transform: translateX(-50%);
      }
    .node-vertical-line {
      height: 60px;
    }
}

.history-curve-path {
  stroke-dasharray: 10000; /* 预设一个足够大的值，JS会重计 */
  stroke-dashoffset: 10000;
  shape-rendering: geometricPrecision;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.about-history.is-active .history-curve-path {
  stroke-dashoffset: 0;
  opacity: 1;
  transition: stroke-dashoffset 3s ease-in-out, opacity 0.3s ease-out;
}

/* 初始隐藏节点，待曲线绘制到相应位置后再显示 */
.history-node-item,
.history-module-node {
  opacity: 0;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.history-node-item.is-visible,
.history-module-node.is-visible {
  opacity: 1;
}

.history-play-node {
  position: absolute;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  width: 100px; /* 减小尺寸 */
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.history-play-node.is-visible {
  opacity: 1;
}

.history-play-node.flipped {
  transform: translate(-50%, -50%) scaleX(-1);
}

.history-play-node img {
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .history-play-node {
    width: 50px; /* 减小移动端尺寸 */
  }
}

/* 产品矩阵区域样式 */
.about-products {
  padding: 60px 0 60px 0;
  background: #F2F4FA;
}

.about-products-title {
  text-align: center;
  font-size: 32px;
  font-weight: bold;
  color: #222;
  margin-bottom: 8px;
  font-family: var(--font-medium), sans-serif;
}

.about-products-subtitle {
  text-align: center;
  font-size: 16px;
  color: #888;
  margin-bottom: 32px;
  font-family: var(--font-light), sans-serif;
}

.about-products-cards {
  width: 80%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.about-products-card {
  background: #F7F8FF;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 40px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  transition: all 0.3s ease;
}

.about-products-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.about-products-icon {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-products-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-products-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.about-products-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.about-products-card-title {
  font-size: 18px;
  font-weight: bold;
  color: #0D7DFC;
  font-family: var(--font-medium), sans-serif;
}

.about-products-card-subtitle {
  font-size: 14px;
  color: #666;
  font-family: var(--font-light), sans-serif;
}

.about-products-card-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  font-family: var(--font-light), sans-serif;
  text-indent: 2em;
  text-align: left;
}

@media (max-width: 900px) {
  .about-products-cards {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  
  .about-products-card {
    padding: 24px;
  }
}

@media (max-width: 1200px) {
  .about-products-card {
    padding: 24px;
  }
}

@media (max-width: 1200px) {
  .about-products-card {
    width: 95%;
    padding: 24px 8px;
    min-height: 320px;
  }
}

/* 公司地址区域样式 */
.about-address {
  padding: 60px 0 0 0;
  /* background: #f4f6fb; */
}

.about-address-card {
  width: 80%;
  margin: 0 auto 60px auto;
  background: #fff;
  border-radius: 2px;
  /* box-shadow: 0 4px 32px 0 rgba(36, 100, 255, 0.06), 0 0 0 1.5px #e3e8f7; */
  padding: 32px 32px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-address-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-address-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 48px;
  font-size: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #e8ecf5;
}

.about-address-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex: 0 0 auto;
  justify-content: flex-start;
}

.about-address-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-address-company {
  font-size: 18px;
  font-weight: bold;
  color: #222;
  margin-bottom: 16px;
  font-family: var(--font-medium), sans-serif;
}

.about-address-label {
  color: #2563eb;
  font-weight: bold;
  margin-right: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.about-address-text {
  color: #444;
  margin-right: 0;
  line-height: 21px;
}

.about-address-map {
  width: 100%;
  height: 320px;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 8px;
}

.about-address-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

@media (max-width: 1200px) {
  .about-address-card {
    width: 95%;
    padding: 16px 4px 12px 4px;
  }
}

@media (max-width: 900px) {
  .about-address-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
  }

  .about-address-item {
    justify-content: flex-start;
    width: 100%;
  }

  .about-address-map {
    height: 200px;
  }
}
