/* ===================================
   页脚样式 - Figma 精确还原
   设计节点: 770:158
   =================================== */

.figma-footer {
  background-color: #004373;
  width: 100%;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
}

.figma-footer-content {
  display: flex;
  justify-content: center;
  gap: 137px;
  max-width: 1440px;
  height: 402px; /* Figma Frame 34 height */
  margin: 0 auto;
  padding: 0 100px; /* Figma Horizontal padding */
  box-sizing: border-box;
}

.figma-footer-column-container {
  display: flex;
  gap: 137px;
}

/* Logo 区域 */
.figma-footer-logo-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 32px;
  flex-shrink: 0;
}

.figma-footer-logo-section img {
  width: 162px;
  height: 121px;
  object-fit: contain;
}

/* 链接列 */
.figma-footer-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 32px;
  width: 201px;
  flex-shrink: 0;
}

.figma-footer-title {
  font-family: 'Open Sans Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-transform: uppercase;
  margin-bottom: 53px; /* Figma gap between title and links */
  height: 24px; /* 统一标题高度 */
  display: flex;
  align-items: center;
}

.figma-footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.figma-footer-links a,
.figma-footer-links p {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 15.6px;
  color: #FFFFFF;
  text-decoration: none;
  margin: 0;
  white-space: nowrap;
}

.figma-footer-links a:hover {
  text-decoration: underline;
}

/* 社交媒体 */
.figma-footer-social {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 32px;
  flex-shrink: 0;
}

.figma-footer-social .figma-footer-title {
  margin-bottom: 33px; /* Figma gap for social title */
  margin-top: 20px; /* 微调 Social Media 标题高度以对齐其它列的文字水平线 */
}

.figma-footer-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  width: 209px;
}

.figma-footer-social-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.figma-footer-social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 底部版权栏 */
.figma-footer-bottom-wrapper {
  border-top: 1px solid #FFFFFF;
  width: 100%;
}

.figma-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 0;
  height: 40px;
  box-sizing: border-box;
}

.figma-footer-bottom-links {
  display: flex;
  gap: 40px;
  align-items: center;
  padding-left: 24px;
}

.figma-footer-bottom-links a {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 40px;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  text-decoration: none;
  margin: 0;
}

.figma-footer-bottom-copyright {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 19.5px;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  padding: 10px;
}

/* 响应式设计 */
@media (max-width: 1400px) {
  .figma-footer-content {
    gap: 100px;
    padding: 0 50px;
  }
  .figma-footer-column-container {
    gap: 100px;
  }
}

@media (max-width: 1280px) {
  .figma-footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 0;
    padding: 0;
    height: 402px;
    max-width: 1280px;
  }
  .figma-footer-column-container {
    display: contents;
  }
  .figma-footer-column, 
  .figma-footer-logo-section, 
  .figma-footer-social {
    padding: 0 32px;
    width: auto;
    height: 329px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
  }
  .figma-footer-logo-section {
    align-items: center;
  }
  .figma-footer-column {
    align-items: start;
    justify-content: flex-end;
    padding-bottom: 50px;
  }
  .figma-footer-social {
    align-items: start;
    justify-content: flex-end;
    padding-bottom: 50px;
  }
  .figma-footer-title {
    margin-bottom: 53px;
    margin-top: 0;
  }
  .figma-footer-social .figma-footer-title {
    margin-bottom: 37px;
  }
}

@media (max-width: 768px) {
  .figma-footer-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    height: auto;
  }

  .figma-footer-logo-section {
    width: 100%;
    height: 133px;
    border-bottom: 1px solid #a6a6a6;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex: none;
  }

  .figma-footer-column-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 0;
  }

  .figma-footer-column {
    padding: 40px 32px;
    height: 258px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    min-width: unset;
  }

  .figma-footer-title {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 53px;
    margin-top: 0;
    height: auto;
  }

  .figma-footer-social {
    width: 100%;
    border-top: 1px solid #a6a6a6;
    min-height: 134px; /* 改用最小高度，允许内容溢出时撑开容器 */
    height: auto;
    padding: 20px 0; /* 增加上下内边距 */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex: none;
  }

  .figma-footer-social .figma-footer-title {
    display: none;
  }

  .figma-footer-social-icons {
    width: 100%;
    gap: 20px; /* 减小图标间距，防止在极窄屏幕下溢出 */
    display: flex;
    flex-wrap: wrap; /* 允许换行显示 */
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .figma-footer-social-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0; /* 防止图标被压缩 */
  }

  .figma-footer-bottom {
    flex-direction: column;
    height: auto;
    padding: 20px 0;
    gap: 15px;
    align-items: center;
    text-align: center;
  }
  
  .figma-footer-bottom-links {
    padding-left: 0;
    gap: 20px;
    justify-content: center;
  }

  .figma-footer-bottom-copyright {
    padding: 0;
    line-height: 1.5;
  }
}
