/*
 * AI on Web3 - 自定义样式
 * 本文件仅用于 D:\Download\AI ON WEB3 项目，请勿在其他工程中引用。
 */

/* 防止横向滚动 */
html, body {
  overflow-x: hidden;
}

/* ========== Hero 区域高度（当前为原 2 倍高的一半，约 85vh） ========== */
.hero-section {
  min-height: 60vh;
  height: 85vh;
  max-height: 900px;
}

/* ========== 导航栏高度：当前高度的 3/4（上下 padding 约 5.5px） ========== */
.header {
  padding-top: 5.5px;
  padding-bottom: 5.5px;
}

/* ========== 语言切换按钮 ========== */
.lang-btn {
  cursor: pointer;
  transition: opacity 0.2s;
}
.lang-btn:hover {
  opacity: 0.85;
}
.lang-btn.active {
  text-decoration: underline;
}

/* ========== 导航栏社交图标：强制等大 + 两图标之间合适间距 ========== */
.header-social {
  display: flex;
  align-items: center;
  gap: 14px; /* 两图标之间固定间距 */
}
.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.header-social img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* ========== Company 板块：内容区宽度（xl 下 960px = 1300 - 170*2） ========== */
@media (min-width: 1280px) {
  .company-profile-wrap {
    padding-left: 170px;
    padding-right: 170px;
  }
}

/* 公司信息列（约 80%） */
.company-info-col {
  width: 80%;
}

/* CEO 照片列（约 20%） */
.ceo-photo-col {
  width: 20%;
}
.ceo-photo-col img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* CEO 致辞与公司信息区间距 */
.ceo-message-wrap {
  margin-top: 4.5rem;
}

/* CEO 署名后留两行空行 */
.ceo-sign-spacer {
  min-height: 3em;  /* 约两行空行 */
  margin-top: 0.5em;
}

/* CEO's Message 横幅：与板块同宽，蓝底白字，左侧上斜切 + 右侧缎带折角 + 轻阴影 */
.ceo-message-banner {
  background: linear-gradient(135deg, #2a92d3 0%, #2380c0 100%);
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  padding: 14px 24px 14px 36px;
  margin-bottom: 20px;
  margin-left: -10px;
  margin-right: -10px;
  width: calc(100% + 20px);
  box-sizing: border-box;
  /* 形状：左侧上斜切 + 右侧小折角（缎带感） */
  clip-path: polygon(32px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 0 0);
  -webkit-clip-path: polygon(32px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 0 0);
  box-shadow: 0 2px 12px rgba(42, 146, 211, 0.35);
}

/* ========== NEWS 区块背景 ========== */
.bg-news {
  background-image: url('../images/news-bg.jpg');
  background-color: #2a92d3;  /* 当图片没加载时的底色 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* NEWS 板块：切换语言时版面统一（固定标题列宽 + 列表列宽 + 每条最小高度） */
@media (min-width: 768px) {
  .news-title-col {
    width: 200px;   /* 标题列固定宽度，不随文案变化 */
    flex-shrink: 0;
  }
  .news-list-col {
    flex: 1;
    min-width: 0;   /* 避免 flex 子项被内容撑开 */
    max-width: 100%;
  }
}
.news-item-inner {
  min-height: 72px;  /* 每条新闻最小高度一致，避免中/日/英行数不同导致版面跳动 */
  box-sizing: border-box;
}

/* ========== 返回顶部按钮 ========== */
.back-to-top {
  z-index: 999;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  transition: opacity 0.2s, transform 0.2s;
}
.back-to-top:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ========== SERVICES 板块：段落排版，段落之间空一行 ========== */
.services-para {
  margin-bottom: 0;
}
.services-para-gap {
  margin-top: 1.5em; /* 段落之间空一行的视觉效果 */
}

/* ========== Services 小板块图片统一高度（可选） ========== */
@media (min-width: 1280px) {
  .company-profile-wrap .ceo-photo-col img {
    max-height: 320px;
    object-fit: contain;
  }
}
