/* 页脚样式 - 优化版 */

/* 页脚整体样式 */
.footer {
  background-color: #1a1a1a;
  color: #fff;
  padding: 70px 0 0;
  position: relative;
  overflow: hidden;
}

/* 页脚顶部装饰线 */
.footer:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #9a8652, #c5b17e, #9a8652);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 40px;
  position: relative;
  align-items: flex-start;
  gap: 0;
}

/* 页脚列通用样式 */
.footer-column {
  flex: 1;
  min-width: 250px;
  margin-bottom: 20px;
  padding-right: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* 第一列特殊样式 */
.footer-column:first-child {
  padding-top: 0;
  min-width: 300px;
  flex: 1.3;
  max-width: 95%;
  margin-right: 20px;
  padding-left: 5px;
}

/* 快速链接、业务领域和联系方式列的特殊样式 */
.footer-column.quick-links {
  min-width: 150px;
  flex: 0.6;
  margin-right: 10px;
  padding-left: 15px;
}

.footer-column.practice {
  min-width: 180px;
  flex: 0.8;
  margin-right: 10px;
  padding-left: 15px;
}

.footer-column.contact-info {
  min-width: 220px;
  flex: 1;
  padding-right: 0;
  padding-left: 15px;
}

/* 页脚标题样式 */
.footer-column h3 {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 20px;
  color: #fff;
  position: relative;
  padding-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.footer-column h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #9a8652, #c5b17e);
  border-radius: 3px;
}

/* 页脚Logo样式 */
.footer-logo {
  position: relative;
  margin-bottom: 20px;
  padding: 5px 0;
  margin-left: -10px;
}

.footer-logo h2 {
  margin: 0;
  font-size: 26px;
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
  position: relative;
  padding-left: 75px;
  white-space: nowrap;
}

.footer-logo:before {
  content: "";
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 75px;
  height: 50px;
  background-image: url("../images/miscellaneous/logo.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 5px;
}

.footer-logo .logo-en {
  font-size: 13px;
  margin-top: 5px;
  padding-left: 75px;
  color: #c5b17e;
  letter-spacing: 1.2px;
}

/* 页脚段落样式 */
.footer-column p {
  color: #b8b8b8;
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 15px;
  max-width: 95%;
}

/* 第一列段落特殊样式 */
.footer-column:first-child p {
  max-width: 85%;
  padding-right: 0;
  font-size: 16px;
  margin-left: -15px;
  margin-top: -5px;
}

/* 社交链接样式 */
.social-links {
  display: flex;
  gap: 20px; /* 增加图标之间的间距 */
  margin-top: 15px;
  flex-wrap: wrap; /* 允许在小屏幕上换行 */
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px; /* 增加图标大小 */
  height: 45px; /* 增加图标大小 */
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  transition: all 0.3s ease;
  font-size: 16px;
  text-decoration: none; /* 确保没有下划线 */
  border-bottom: none; /* 明确移除底部边框 */
  margin-bottom: 10px; /* 在垂直方向上增加间距 */
}

.social-links a:hover {
  background-color: #9a8652;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(154, 134, 82, 0.4);
}

/* 页脚链接列表样式 */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
  transition: transform 0.2s ease;
}

.footer-links li:hover {
  transform: translateX(5px);
}

.footer-links a {
  color: #b8b8b8;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  padding-left: 18px;
  display: block;
  font-size: 15px;
}

.footer-links a:before {
  content: "\f105";
  font-family: "FontAwesome";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #9a8652;
  transition: transform 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links a:hover:before {
  transform: translateY(-50%) translateX(3px);
}

/* 页脚联系信息样式 */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  margin-bottom: 15px;
  color: #b8b8b8;
  display: flex;
  align-items: flex-start;
  transition: transform 0.2s ease;
  font-size: 15px;
}

.footer-contact li:hover {
  transform: translateX(5px);
}

.footer-contact a {
  color: #b8b8b8;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-contact i {
  color: #c5b17e;
  margin-right: 15px;
  min-width: 20px;
  text-align: center;
  margin-top: 5px;
  font-size: 16px;
}

/* 页脚底部版权信息样式 */
.footer-bottom {
  background-color: #111;
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  clear: both;
  width: 100%;
  box-sizing: border-box;
}

.footer-bottom .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.footer-bottom p {
  margin: 0;
  color: #777;
  font-size: 14px;
  letter-spacing: 0.5px;
  word-wrap: break-word;
  word-break: normal;
  white-space: normal;
  max-width: 100%;
  display: block;
  text-align: center;
  line-height: 1.5;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 微信浏览器兼容性处理 */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .footer-bottom p {
    word-break: keep-all;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
  }
}

/* 针对微信内置浏览器的特殊处理 */
.footer-bottom p {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* 响应式样式 */
@media (max-width: 1200px) {
  .footer-column:first-child {
    min-width: 260px;
    flex: 1.1;
    margin-right: 15px;
  }

  .footer-column.quick-links {
    min-width: 140px;
    margin-right: 8px;
  }

  .footer-column.practice {
    min-width: 170px;
    margin-right: 8px;
  }

  .footer-column.contact-info {
    min-width: 200px;
  }
}

@media (max-width: 992px) {
  .footer-column {
    min-width: 200px;
    flex: 1 0 45%;
    margin-right: 0;
  }

  .footer-column:first-child {
    flex: 1 0 100%;
    max-width: 100%;
    margin-bottom: 30px;
  }

  .footer-column.quick-links,
  .footer-column.practice {
    flex: 1 0 40%;
    padding-left: 0;
  }

  .footer-column.contact-info {
    flex: 1 0 100%;
    padding-left: 0;
    margin-top: 20px;
  }

  .footer-content {
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .footer-column {
    flex: 0 0 100%;
    padding-right: 0;
    min-width: 100%;
    margin-right: 0;
    margin-bottom: 25px;
  }

  .footer-column.quick-links,
  .footer-column.practice,
  .footer-column.contact-info {
    padding-left: 0;
    padding-right: 0;
    margin-top: 10px;
  }

  /* 在移动端将快速链接和业务领域放在同一行 */
  .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .footer-column:first-child {
    flex: 0 0 100%;
    order: 1;
    margin-bottom: 30px;
  }

  /* 创建一个包装容器，将快速链接和业务领域放在一起 */
  .footer-column.quick-links,
  .footer-column.practice {
    width: 48%; /* 设置宽度为48%，留出间距 */
    float: left; /* 使用浮动布局 */
    clear: none; /* 清除浮动 */
    margin-bottom: 20px;
  }

  .footer-column.quick-links {
    margin-right: 4%; /* 添加右边距 */
  }

  /* 联系信息放在最下方，清除浮动 */
  .footer-column.contact-info {
    width: 100%;
    clear: both; /* 清除浮动 */
    margin-top: 20px;
  }

  /* 调整页脚内容间距 */
  .footer-content {
    margin-bottom: 20px;
    gap: 15px;
  }

  .footer {
    padding: 40px 0 0;
  }

  .footer-logo h2 {
    font-size: 20px;
    padding-left: 60px;
  }

  .footer-logo:before {
    width: 50px;
    height: 35px;
    left: -10px;
  }

  .footer-logo .logo-en {
    padding-left: 60px;
    font-size: 11px;
  }

  .footer-column:first-child {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-column:first-child .footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 0;
  }

  .footer-column:first-child .footer-logo:before {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    margin-bottom: 15px;
  }

  .footer-column:first-child .footer-logo h2,
  .footer-column:first-child .footer-logo .logo-en {
    padding-left: 0;
    text-align: center;
  }

  .footer-column:first-child p {
    font-size: 14px;
    margin-left: 0;
    margin-top: 0;
    max-width: 100%;
    line-height: 1.5;
    text-align: center;
  }

  .footer-column h3 {
    font-size: 18px;
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  .footer-links li {
    margin-bottom: 8px;
  }

  .footer-links a {
    font-size: 14px;
  }

  .footer-contact li {
    margin-bottom: 12px;
  }

  .footer-contact a {
    font-size: 14px;
  }

  .footer-contact i {
    margin-right: 10px;
    font-size: 15px;
  }

  .social-links {
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
  }

  .social-links a {
    width: 40px;
    height: 40px;
  }

  .footer-bottom {
    padding: 15px 0;
  }

  .footer-bottom p {
    font-size: 12px;
    line-height: 1.4;
    padding: 0 15px;
    word-wrap: break-word;
    word-break: keep-all;
    white-space: normal;
    text-align: center;
    display: block;
    max-width: 100%;
    overflow-wrap: break-word;
    -webkit-text-size-adjust: none;
    -ms-text-size-adjust: none;
    text-size-adjust: none;
    box-sizing: border-box;
    margin: 0 auto;
  }
  
  /* 在移动端隐藏统一社会信用代码 */
  .footer-bottom .credit-code {
    display: none;
  }
}
