/* HHA About page - 基于 Flexbox 的左右分栏布局 */
.hha-about-page { 
  font-family: 'Montserrat', sans-serif; 
  color: #1f2937; 
  width: 100%;
}

/* 容器：保持60px边距，使用flexbox自适应 */
.hha-about-container { 
  width: 100%; 
  margin: 0 auto; 
  padding: 0 60px; 
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hha-about-container2 { 
  width: 100%; 
  margin: 0 auto; 
  padding: 0 60px; 
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Hero 区域 */
.hha-about-hero { 
  position: relative; 
  width: 100%;
  height: clamp(260px, 25vh, 400px);
  background: url('/static/website/assets/img/about/top-banner-bg.png') center/cover no-repeat; 
}

.hha-about-hero-overlay { 
  position: absolute; 
  inset: 0; 
  /* 添加轻微暗角与渐变，加强标题可读性 */
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.10) 40%, rgba(0,0,0,0.18) 100%);
  box-shadow: inset 0 -60px 120px rgba(0,0,0,0.22), inset 0 40px 80px rgba(0,0,0,0.18);
}

.hha-about-hero-inner { 
  position: relative; 
  z-index: 1; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  height: 100%; 
}

.hha-about-hero-title { 
  color: #fff; 
  font-weight: 600; 
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: 0.5px; 
  text-align: center;
  /* 文本阴影：增强对比度兼顾柔和感 */
  text-shadow: 0 6px 15px #000000;
}

/* Intro 区域 - 使用左右分栏布局 */
.hha-about-intro { 
  padding: clamp(40px, 8vh, 100px) 0 clamp(30px, 4vh, 60px); 
  background: #fff; 
  width: 100%;
}

.hha-about-intro2 { 
  padding: clamp(40px, 8vh, 100px) 0 clamp(30px, 3vh, 60px); 
  background: #fff; 
  width: 100%;
}

.hha-about-section2-title{
  font-size: clamp(16px, 1.2vw, 22px); 
  color: #9ca3af;
}

/* 标题区域 - 左对齐显示 */
.hha-about-intro-title { 
  text-align: left;
  margin-bottom: clamp(30px, 4vh, 60px); 
  width: 100%;
}

.hha-about-intro-title h2:first-child { 
  font-size: clamp(16px, 1.2vw, 26px); 
  letter-spacing: 0.14em; 
  color: black;  
  text-transform: uppercase; 
  display: flex; 
  align-items: center; 
  justify-content: flex-start;
  gap: clamp(12px, 1.5vw, 20px); 
  margin: 0 0 clamp(8px, 1vh, 16px); 
  font-weight: 400;
  line-height: 1.4;
}

.hha-about-intro-title2 h2:first-child { 
  font-size: clamp(16px, 1.2vw, 26px); 
  letter-spacing: 0.14em; 
  color: black;  
  text-transform: uppercase; 
  display: flex; 
  align-items: center; 
  justify-content: flex-start;
  gap: clamp(12px, 1.5vw, 20px); 
  margin: 0 0 clamp(8px, 1vh, 16px); 
  font-weight: 400;
  line-height: 1.4;
}

.hha-about-intro-title h2:first-child::after { 
  content: ""; 
  display: inline-block; 
  width: 40px; 
  height: 1px; 
  background: black; 
}

.hha-about-intro-title2 h2:first-child::after { 
  content: ""; 
  display: inline-block; 
  width: 40px; 
  height: 1px; 
  background: black; 
}

.hha-about-section-title2 p{
  color: #666666;
  font-size: 1.6vw;
  line-height: 48px;
}

.hha-about-intro-title h2:last-child { 
  margin: 0; 
  font-size: clamp(32px, 2.7vw, 56px); 
  font-weight: 700; 
  color: #111827; 
  line-height: 1.2; 
  text-align: left;
}

/* 主内容区域 - 左右两个div各占50%，确保对齐 */
.hha-about-main-content {
  display: flex;
  flex-direction: row;
  gap: clamp(40px, 5vw, 80px);
  width: 100%;
  align-items: flex-start; /* 确保顶部对齐 */
}

/* 左边图片组区域 - 占50%宽度，上下布局 */
.hha-about-left-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.5vw, 40px);
  min-height: 0; /* 允许内容收缩 */
  overflow: hidden; /* 防止内容超出边框 */
}

/* 右边文字描述区域 - 占50%宽度，上下布局，与左边对齐 */
.hha-about-right-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.5vw, 30px);
  justify-content: flex-start; /* 从顶部开始排列 */
  align-items: stretch; /* 拉伸子元素 */
  min-height: 0; /* 允许内容收缩 */
}

/* 图片样式 */
.hha-about-img { 
  width: 100%; 
  height: auto;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1); 
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block; /* 确保图片正确显示 */
  max-width: 100%; /* 防止图片超出容器 */
}

.hha-about-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.hha-about-intro-thumbs { 
  display: flex; 
  gap: clamp(12px, 1.5vw, 24px); 
  width: 100%;
  overflow: hidden; /* 防止图片组超出边框 */
}

.hha-about-thumb { 
  width: 30%;
  flex: 1;
  height: auto;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08); 
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block; /* 确保图片正确显示 */
  max-width: 100%; /* 防止图片超出容器 */
  object-fit: cover; /* 保持图片比例 */
}

.hha-about-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

/* 文字样式 - 优化字号自适应 */
.hha-about-text { 
  color: #4b5563; 
  font-size: clamp(16px, 1.6vw, 45px); /* 调整字号范围 */
  line-height: 1.6; /* 优化行高 */
  margin: 0;
  text-align: left;
  word-wrap: break-word; /* 长单词换行 */
  hyphens: auto; /* 自动连字符 */
}

/* Stats 统计卡片 - 优化布局，确保水平对齐 */
.hha-about-stats { 
  display: flex; 
  flex-direction: row;
  gap: clamp(16px, 2vw, 32px); 
  flex-wrap: wrap;
  width: 100%;
  margin-top: 3%;
  align-items: stretch; /* 确保卡片高度一致 */
}

.hha-about-stat-card { 
  flex: 1;
  min-width: 140px; /* 减小最小宽度 */
  border: 1px solid #e5e7eb;  
  padding: clamp(18px, 2.2vw, 20px); /* 调整内边距 */
  text-align: left; /* 文本左对齐 */
  background: #fff; 
  box-shadow: 0 4px 20px rgba(0,0,0,0.06); 
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* 顶部对齐，保证数字在同一基线 */
  align-items: flex-start; /* 左对齐 */
  gap: clamp(8px, 1vw, 12px);
  min-height: clamp(90px, 10vh, 180px); /* 调整最小高度 */
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hha-about-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  border: solid #000000 1px;
}

.hha-about-stat-value { 
  font-size: clamp(28px, 3vw, 55px); /* 调整字号范围 */
  font-weight: 700; 
  color: rgb(24,24,120); 
  line-height: 1; 
  text-align: left;
}

.hha-about-stat-label { 
  font-size: clamp(12px, 1.3vw, 30px); /* 调整字号范围 */
  color: #6b7280; 
  line-height: 1.45; /* 稍大行高避免断行挤压 */
  max-width: 18ch; /* 限制宽度，避免换行不齐 */
  font-weight: 500;
  word-wrap: break-word; /* 长单词换行 */
  text-align: left;
}

/* 时间轴部分 */
.hha-about-timeline-container{
  background: url('/static/website/assets/img/about/worldmap.png'); 
  background-position: 100px 11%; /* 从左边200px开始 */
  background-size: cover;
  background-repeat: no-repeat;
  background-clip: content-box;
  margin: 0 auto;
  padding: 0 60px;
  height: 600px;
}

.hha-about-timeline-items{
  display: flex;
  margin-top: 60px;
  padding-top: 150px;
}

.hha-about-timeline-item{
  display: flex;
  flex-wrap: wrap;
  flex-direction:column;
  width: 20%;
}

.hha-about-timeline-item-time{
  font-size: 40px;
  height: 200px;
}

.hha-about-timeline-item-time-bg {
  width: 150px;
  height: 150px;
  background-color: rgb(24,24,120);
  border-radius: 100px;
  color: white;
  text-align: center;
  align-items: center;
  line-height: 150px;
  font-size: 45px;
  font-weight: 600;
  margin: 0 auto;
  margin-top: 20px;
}

.hha-about-timeline-item-title{
  font-size: 24px;
  line-height: 1.6;
  color: #000000;
}

/* OUR CORE CAPABILITIES */
.hha-core { 
  background: #f7f7f7; 
  padding: clamp(48px,6vw,80px) 0; 
}

.hha-core-container { 
  width: 100%; 
  margin: 0 auto; 
  padding: 0 60px; 
}

.hha-core-title { 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  gap:16px; 
  margin: 0 0 28px; 
  color:#0f172a; 
  font-weight:800; 
  letter-spacing:.02em; 
}

.hha-core-title span:nth-child(2){ 
  font-size: 1.8vw; 
}

.hha-core-title-line{ 
  flex:1; 
  height:1px; 
  background:black; 
  max-width:40px; 
  font-weight: 700;
}

.hha-core-grid { 
  display:grid; 
  grid-template-columns: repeat(4,1fr); 
  gap: clamp(20px,2vw,28px); 
}

.hha-core-card { 
  background:#fff; 
  border:1px solid #e5e7eb; 
  border-radius:12px; 
  box-shadow:0 6px 18px rgba(0,0,0,.06); 
  overflow:hidden; 
  display:flex; 
  flex-direction:column; 
}

.hha-core-media img{ 
  display:block; 
  width:100%; 
  object-fit: cover; 
}

.hha-core-card-title{ 
  margin:16px 16px 8px; 
  font-weight:600; 
  color:#0f172a; 
  font-size: 27px; 
  line-height:1.35; 
  text-transform:uppercase; 
}

.hha-core-list{ 
  margin: 8px 16px 0; 
  padding: 0 0 0 18px; 
  color:#4b5563; 
  font-size: clamp(12px,1.1vw,18px); 
  line-height:1.65; 
}

.hha-core-list li{ 
  margin:6px 0; 
}

.hha-core-btn{ 
  align-self:flex-start; 
  margin: 16px; 
  display:inline-block; 
  padding:15px 32px; 
  border-radius:999px; 
  background:#479E83; 
  color:#fff; 
  text-decoration:none; 
  font-weight:700; 
  font-size:16px; 
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease; 
}

.hha-core-btn:hover{ 
  transform: translateY(-1px); 
  box-shadow: 0 8px 18px #479E83; 
  background:#479E83; 
  color: white; 
  text-decoration: none;
}

/* 列表圆点与顶端对齐 */
.hha-core-list{ 
  list-style: none; 
  padding-left: 0; 
}

.hha-core-list li{ 
  position: relative; 
  padding-left: 16px; 
  display: block; 
}

.hha-core-list li::before{ 
  content: ""; 
  position: absolute; 
  left: 0; 
  top: 0.55em; 
  width: 10px; 
  height: 10px; 
  border-radius: 50%; 
  background: #1e293b; 
}

/* 进入视口的向上移动动画（手风琴式分段延时） */
.hha-core-card{ 
  transform: translateY(28px); 
  opacity: 0; 
  clip-path: inset(0 0 100% 0); 
  will-change: transform, opacity, clip-path; 
}

.hha-core.in-view .hha-core-card{ 
  transform: translateY(0); 
  opacity: 1; 
  clip-path: inset(0 0 0 0); 
  transition: transform .6s ease, opacity .6s ease, clip-path .6s cubic-bezier(.22,.61,.36,1), box-shadow .2s ease; 
}

.hha-core.in-view .hha-core-card:nth-child(1){ 
  transition-delay: .00s; 
}

.hha-core.in-view .hha-core-card:nth-child(2){ 
  transition-delay: .12s; 
}

.hha-core.in-view .hha-core-card:nth-child(3){ 
  transition-delay: .24s; 
}

.hha-core.in-view .hha-core-card:nth-child(4){ 
  transition-delay: .36s; 
}

/* 让 Read More 按钮在卡片底部水平对齐 */
.hha-core-card{ 
  display:flex; 
  flex-direction:column; 
}

.hha-core-list{ 
  flex:1 1 auto; 
}

.hha-core-btn{ 
  margin: 20px 20px 30px 20px; 
}

/* 统一媒体区高度，保证标题水平对齐 */
.hha-core-media{ 
  overflow: hidden; 
}

.hha-core-media img{ 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block; 
}

/* OUR MISSION Section Styles */
.hha-about-mission-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  position: relative;
  overflow: hidden;
}

.hha-about-mission-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23f0f0f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.hha-about-mission-content {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hha-about-mission-left {
  position: relative;
  width: 70%;
}

.hha-about-mission-left img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hha-about-mission-right {
  flex: 1;
  padding-left: 40px;
}

.hha-about-mission-title {
  font-size: 4.5rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 30px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}

.hha-about-mission-text {
  font-size: 2.1rem;
  line-height: 1.8;
  color: #333333;
  margin-bottom: 40px;
  font-family: 'DM Sans', sans-serif;
  max-width: 500px;
}

.hha-about-mission-btn {
  display: inline-block;
  background: #479E83;
  color: #ffffff !important;
  padding: 18px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 25px rgba(32, 178, 170, 0.3);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 3;
}

.hha-about-mission-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.hha-about-mission-btn:hover::before {
  left: 100%;
}

.hha-about-mission-btn:hover {
  background: #1a9a94;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(32, 178, 170, 0.3);
  color: #ffffff;
  text-decoration: none;
}

/* ==================== PC端响应式样式 ==================== */

/* 大屏幕优化 (1920px+) */
@media (min-width: 1550px) and (max-width: 1670px){
  .hha-about-mission-title {
    font-size: 3.7rem;
  }
  .hha-about-mission-text {
    font-size: 1.7rem;
  }
}
@media (min-width: 1680px) and (max-width: 1900px){
  .hha-about-mission-title {
    font-size: 4.1rem;
  }
  .hha-about-mission-text {
    font-size: 1.8rem;
  }
  .hha-about-stats{
    margin-top: 1%;
  }
}
@media (min-width: 1920px) {
  .hha-about-text{
    font-size: 1.6vw;
  }
  .hha-about-stat-label{
    font-size: 1.4vw;
  }
  .hha-about-section-title2 p{
    color: #666666;
    font-size: 1.6vw;
  }
  .hha-about-mission-title {
    font-size: 4.8rem;
  }
  .hha-about-mission-text {
    font-size: 2rem;
  }
}
@media (min-width: 2500px) {
  .hha-about-mission-title {
    font-size: 6.7rem;
  }
  .hha-about-mission-text {
    font-size: 2.5rem;
  }
}

@media (min-width: 2000px) {
  .hha-about-stats{
    margin-top: 2%;
  }
}

@media (min-width: 2200px) {
  .hha-about-stats{
    margin-top: 4%;
  }
  .hha-about-stat-label{
    font-size: 34px
  }
}

@media (min-width: 2300px) {
  .hha-about-stats{
    margin-top: 6%;
  }
}

@media (min-width: 2400px) {
  .hha-about-stats{
    margin-top: 5%;
  }
  .hha-about-text{
    font-size: 1.7vw;
  }
  .hha-about-stat-label{
    font-size: 1.5vw;
  }
  .hha-about-stat-value{
    font-size: 3vw;
  }
  .hha-about-timeline-item-time{
    height: 250px;
  }
}

/* 中等屏幕优化 (1200px-1919px) */
@media (max-width: 1200px) {
  .hha-about-container { 
    padding: 0 40px; 
  }
  .hha-about-main-content {
    gap: clamp(30px, 4vw, 60px);
  }
  .hha-core-container{ 
    padding:0 40px; 
  }
  .hha-core-grid{ 
    grid-template-columns: repeat(2,1fr);
  }
}

/* 小屏幕优化 (992px-1199px) */
@media (max-width: 992px) {
  .hha-about-main-content { 
    flex-direction: column; 
    gap: clamp(30px, 4vw, 50px);
  }
  .hha-about-intro-title h2:last-child {
    font-size: clamp(28px, 4vw, 44px);
  }
  .hha-about-text {
    font-size: clamp(16px, 1.6vw, 22px);
  }
}

/* ==================== 手机端响应式样式 (768px及以下) ==================== */

@media (max-width: 768px) {
  /* 容器调整 */
  .hha-about-container { 
    padding: 0 20px; 
  }
  .hha-about-container2 { 
    padding: 0 20px; 
  }
  .hha-core-container { 
    padding: 0 20px; 
  }
  
  /* Hero部分 */
  .hha-about-hero {
    height: clamp(180px, 18vh, 250px);
  }
  .hha-about-hero-title {
    font-size: clamp(24px, 6vw, 32px);
    letter-spacing: 0.3px;
  }
  
  /* 介绍部分 */
  .hha-about-intro { 
    padding: clamp(30px, 6vh, 60px) 0 clamp(20px, 3vh, 40px); 
  }
  .hha-about-intro2 {
    padding: 30px 0px 0px 0px;
  }
  .hha-about-main-content {
    flex-direction: column;
    gap: 40px;
  }
  .hha-about-left-section {
    width: 100%;
    order: 2;
  }
  .hha-about-right-section {
    width: 100%;
    order: 1;
    text-align: center;
  }
  .hha-about-intro-thumbs {
    justify-content: center;
    gap: 15px;
  }
  .hha-about-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  .hha-about-stat-card {
    text-align: center;
  }
  .hha-about-section-title {
    font-size: 24px;
    margin-bottom: 15px;
  }
  .hha-about-text {
    font-size: 16px;
  }
  .hha-about-section-title2 {
    font-size: 18px;
    margin-bottom: 18px;
  }
  .hha-about-section-title2 p {
    font-size: 15px;
    line-height: 1.5;
  }
  
  /* 时间轴部分 */
  .hha-about-timeline-container {
    padding: 0 20px;
    height: auto;
    min-height: 600px;
    background-position: 50px 5%;
    background-size: 80%;
  }
  .hha-about-timeline-items {
    flex-direction: column;
    padding-top: 60px;
    margin-top: 0px;
    gap: 25px;
  }
  .hha-about-timeline-item {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }
  .hha-about-timeline-item-time {
    height: auto;
    order: 1;
  }
  .hha-about-timeline-item-title {
    order: 2;
    flex: 1;
    font-size: 16px;
    line-height: 1.4;
  }
  .hha-about-timeline-item-time-bg {
    width: 70px;
    height: 70px;
    line-height: 70px;
    font-size: 20px;
    margin: 0;
  }
  
  /* 核心能力部分 */
  .hha-core-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .hha-core-title span:nth-child(2) {
    font-size: 20px;
  }
  .hha-core-card-title {
    font-size: 18px;
    height: 22px;
    margin: 16px 16px 5px;
  }
  .hha-core-list li {
    font-size: 14px;
  }
  
  /* Mission部分 */
  .hha-about-mission-section {
    padding: 50px 0;
  }
  .hha-about-mission-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  .hha-about-mission-left {
    width: 100%;
    order: 2;
  }
  .hha-about-mission-left img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
  }
  .hha-about-mission-right {
    width: 100%;
    order: 1;
    padding-left: 0;
  }
  .hha-about-mission-title {
    font-size: 2rem;
    margin-bottom: 18px;
  }
  .hha-about-mission-text {
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.6;
    max-width: 100%;
  }
  .hha-about-mission-btn {
    padding: 12px 24px;
    font-size: 13px;
  }
  .hha-about-intro-title{
    margin-bottom: 10px !important;
  }
  .hha-about-right-section{
    gap: clamp(10px, 2.5vw, 30px) !important;
  }
  .hha-about-stats{
    flex-wrap: unset !important;
  }
  .hha-about-stat-card{
    width: 100% !important;
  }
  .hha-about-stat-card{
    min-width: 130px;
  }
  .hha-about-section-title2{
    font-size: 14px !important;
  }
  /* .hha-about-timeline-lines{
    display: none !important;
  } */
}

/* Timeline lines visibility and layering */
.hha-about-timeline-container {
  position: relative;
}

.hha-about-timeline-lines {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Ensure timeline nodes are above the lines */
.hha-about-timeline-item-time-bg,
.hha-about-timeline-item {
  position: relative;
  z-index: 1;
}
