/* certificates.css - 证书页面专用样式 */

/* 横幅区域样式 */
.certificates-banner {
    position: relative;
    background: url('../images/certificates/hf.webp') center/cover no-repeat;
    min-height: 644px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* padding: 80px 20px; */
    overflow: hidden;
    margin-top: -80px; /* 抵消固定导航栏的高度 */
}

.certificates-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(135deg, rgba(76, 166, 255, 0.1) 0%, rgba(110, 231, 183, 0.1) 100%); */
    z-index: 1;
}

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

.banner-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: bold;
    color: #0066FF;
    margin-bottom: 20px;
    /* text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    line-height: 1.2;
}

.banner-subtitle {
    font-family: var(--font-heading);
    font-size: 24px;
    color: #333333;
    font-weight: 500;
}

/* 证书容器样式 */
.certificates-container {
    width:100%;
    /* margin: 40px auto 40px auto; */
    background-color: #F2F4FA;
}

/* 证书展示区域样式 */
.certificates-section {
    display: flex;
    gap: 120px;
    margin:0 auto;
    padding: 40px 0;
    min-height: 380px; /* 保留增加的高度 */
    align-items: center; /* 恢复为中间对齐 */
}

.certificates-section:last-child {
    border-bottom: none;
}

/* 证书区域二特殊背景样式 */
.certificates-section:nth-child(2) {
    height:420px;
    background: url('../images/certificates/content/bg1.webp') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    padding: 80px 40px;
    border-radius: 12px;
    margin: 60px 0;
    position: relative;
    align-items: flex-end; /* 只有区域二底部对齐 */
}

/* 通用标题样式 */
.section-title {
  font-family: var(--font-medium);
  font-size: 32px;
  color: #333;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 16px;
  color: #333333;
  margin-bottom: 60px;
  font-family: var(--font-light);
}

.certificates-section:nth-child(2)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    z-index: 1;
}

.certificates-section:nth-child(2) .certificates-img,
.certificates-section:nth-child(2) .certificates-text {
    position: relative;
    z-index: 2;
    text-align: left;
}

/* 证书区域二图片右侧布局 */
.certificates-section:nth-child(2) {
    flex-direction: row-reverse;
}

/* 区域二的图片左对齐 */
.certificates-section:nth-child(2) .certificates-img {
    justify-content: flex-start;
    text-align: left;
}

.certificates-section:nth-child(2) .certificates-text {
    padding-left: 0;
    padding-right: 20px;
}

/* 证书区域二特殊背景样式 */
.certificates-section:nth-child(4) {
    height:420px;
    background-size: cover;
    background-position: center;
    padding: 80px 40px;
    border-radius: 12px;
    margin: 60px 0;
    position: relative;
    align-items: flex-end; /* 只有区域二底部对齐 */
}

.certificates-section:nth-child(4)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    z-index: 1;
}

.certificates-section:nth-child(4) .certificates-img,
.certificates-section:nth-child(4) .certificates-text {
    position: relative;
    z-index: 2;
    text-align: left;
}

/* 证书区域二图片右侧布局 */
.certificates-section:nth-child(4) {
    flex-direction: row-reverse;
}

/* 区域二的图片左对齐 */
.certificates-section:nth-child(4) .certificates-img {
    justify-content: flex-start;
    text-align: left;
}

.certificates-section:nth-child(4) .certificates-text {
    padding-left: 0;
    padding-right: 20px;
}

/* 证书图片区域 */
.certificates-img {
    text-align: center;
    width: 40%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.certificates-img img {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificates-img img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* 证书文字区域 */
.certificates-text {
    flex: 0.6;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 恢复为中间对齐 */
}

.certificates-text-title {
    font-size: 28px;
    font-weight: 65 Medium;
    color: #333333;
    margin-bottom: 40px;
    font-family: var(--font-medium);
    line-height: 1.3;
}

.certificates-text-desc {
    font-size: 18px;
    line-height: 1.8;
    font-weight:55 Regular;
    color: #333333;
    font-family: var(--font-primary);
}

.back-home {
    display: inline-block;
    margin: 24px 0 0 0;
    padding: 8px 22px;
    background: linear-gradient(135deg, #4CA6FF 0%, #6EE7B7 100%);
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s;
}

.back-home:hover {
    background: linear-gradient(135deg, #6EE7B7 0%, #4CA6FF 100%);
}

/* 自定义头部导航栏样式 */
#header {
    background-color: #fff !important;
    box-shadow: none !important;
}

#header.header-default {
    background-color: #fff !important;
    box-shadow: none !important;
}

#header nav {
    background-color: #fff !important;
    box-shadow: none !important;
}

/* 证书Swiper轮播样式 */
.certificate-swiper {
  width: 240px;
  height: 320px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
}

.certificate-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
}

.certificate-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* 自定义Swiper卡片效果 */
.certificate-swiper .swiper-slide-prev {
  transform: translate3d(calc(-17.25% - 240px), 0px, -100px) rotateZ(-5deg) scale(1);
}

.certificate-swiper .swiper-slide-next {
  transform: translate3d(calc(-34.5% - 480px), 0px, -200px) rotateZ(-10deg) scale(1);
}

/* 隐藏分页器和导航箭头 */
.certificate-swiper .swiper-pagination,
.certificate-swiper .swiper-button-next,
.certificate-swiper .swiper-button-prev {
  display: none;
}

/* 调整移动端样式 */
@media screen and (max-width: 768px) {
  .certificate-swiper {
    width: 200px;
    height: 280px;
  }
}

/* 优化证书图片容器的样式 */
.certificates-img {
  position: relative;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .certificates-banner {
        min-height: 300px;
        padding: 60px 20px;
        padding-top: 140px;
    }

    .banner-title {
        font-size: 32px;
    }

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

    .certificates-container {
        padding: 0 12px;
    }

    /* 移动端证书展示区域调整 */
    .certificates-section {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
        padding: 30px 0;
        min-height: 300px; /* 移动端也增加高度但略小 */
        align-items: center; /* 恢复为中间对齐 */
    }

    .certificates-img {
        flex: none;
        max-width: 100%;
        align-self: center;
    }

    .certificates-text {
        padding-left: 0;
        justify-content: center; /* 恢复为中间对齐 */
    }

    .certificates-text-title {
        font-size: 24px;
        text-align: center;
        margin-bottom: 15px;
    }

    .certificates-text-desc {
        font-size: 15px;
        line-height: 1.7;
        text-align: center;
    }

    /* 移动端证书区域二背景调整 */
    .certificates-section:nth-child(2) {
        padding: 60px 20px;
        margin: 40px 0;
        flex-direction: column;
        align-items: flex-end; /* 区域二保持底部对齐 */
    }

    .certificates-section:nth-child(2) .certificates-text {
        padding-right: 0;
        justify-content: flex-end; /* 区域二的文字底部对齐 */
    }
    
    .certificates-section:nth-child(2) .certificates-img {
        align-self: flex-start; /* 区域二的图片左对齐 */
    }

    .certificate-swiper .swiper-button-next,
    .certificate-swiper .swiper-button-prev {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .banner-title {
        font-size: 28px;
    }

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

    .certificates-section {
        margin-bottom: 30px;
        padding: 20px 0;
    }

    .certificates-img {
        max-width: 280px;
    }

    .certificates-text-title {
        font-size: 20px;
        text-align: center;
    }

    .certificates-text-desc {
        font-size: 14px;
        line-height: 1.6;
        text-align: center;
    }

    /* 小屏幕证书区域二背景调整 */
    .certificates-section:nth-child(2) {
        padding: 50px 15px;
        margin: 30px 0;
        flex-direction: column;
        align-items: flex-end; /* 区域二保持底部对齐 */
    }

    .certificates-section:nth-child(2) .certificates-text {
        padding-right: 0;
        justify-content: flex-end; /* 区域二的文字底部对齐 */
    }
    
    .certificates-section:nth-child(2) .certificates-img {
        align-self: flex-start; /* 区域二的图片左对齐 */
    }
}

/* 只有区域二的文字底部对齐 */
.certificates-section:nth-child(2) .certificates-text {
    justify-content: flex-end;
}

/* 联系我们部分 */
.contact-us {
  padding: 80px 0;
  text-align: center;
}

.contact-form {
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 6px 6px 6px 16px;
  max-width: 440px;
  margin: 0 auto;
}

.contact-input {
  flex: 1;
  border: 1.5px solid #E3EAF5;
  outline: none;
  font-size: 16px;
  padding: 8px 12px;
  background: #fff;
  color: #A9A9A9;
  font-family: var(--font-light), sans-serif;
  font-weight: 45 Light;
  box-shadow: none;
}

.contact-input::placeholder {
  color: #C0C7D1;
  font-size: 15px;
}

.contact-input:focus {
  border: 1.5px solid #4CA6FF;
  outline: none;
  box-shadow: none;
  background: #fff;
  color: #333;
}

.contact-submit {
  padding: 0 28px;
  height: 42px;
  border: none;
  background: linear-gradient(90deg, #4CA6FF 0%, #1CB5FF 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-medium), sans-serif;
  font-weight: 65 Medium;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(76,166,255,0.10);
}

.contact-submit:hover {
  background: linear-gradient(90deg, #4CA6FF 0%, #1CB5FF 100%);
  box-shadow: 0 2px 8px rgba(76,166,255,0.10);
}

.hover-float:hover {
  transform: translateY(-3px);
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
  .contact-form {
    flex-direction: column;
    max-width: 80%;
  }
  
  .contact-input, .contact-submit {
    width: 100%;
  }
}
