* {
  margin: 0;
  padding: 0;
}
body,
#app {
  height: 100%;
  background: #f4f5f6;
  color: #2b2e4a;
}
#header {
  height: 80px;
  width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#logo {
  height: 80px;
  width: 149px;
  height: 22px;
}
#nav {
  height: 80px;
  width: 720px;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#nav a {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
#introduce {
  /* background: #ffffff; */
  height: 250px;
  display: flex;
  align-items: center;
}
.introduce-content {
  width: 1200px;
  margin: 0 auto;
}
.introduce-content h1 {
    font-size: inherit; /* 重置字体大小 */
    color: inherit; /* 继承父元素的文字颜色 */
    font-weight: 600;
}
.introduce-content div {
  font-weight: 600;
  font-size: 56px;
}
.introduce-content div > span {
  color: #3742fa;
}
.introduce-content div:nth-child(2) {
  font-size: 16px;
  font-weight: 400;
  margin: 20px 0;
}

#main {
  background: url("../static/index/watermark.png") no-repeat 220px 1000px;
  background-size: 800px 130px;
}
.main-title {
  padding-top: 90px;
  font-weight: 600;
  font-size: 56px;
  color: #2b2e4a;
  line-height: 72px;
  text-align: center;
}
.main-desc {
  /* font-weight: 500; */
  font-size: 16px;
  color: #2b2e4a;
  line-height: 24px;
  text-align: center;
  padding-top: 16px;
  padding-bottom: 70px;
  width: 500px;
  margin: 0 auto;
}
.main-desc h3,.main-title h2  {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  margin: 0;
}

.main-classify{
    display: flex;
    align-items: center;
    width: 1280px;
    margin: 0 auto 30px;
}
.main-classify>div{
    padding: 11px 30px;
    border-radius: 21px;
    border: 1px solid #979797;
    font-weight: 400;
    font-size: 11px;
    color: #000000;
    letter-spacing: 1px;
    margin-right: 20px;
    cursor: pointer;
}
.main-classify>div.active{
    background: #3742fa;
    color: #ffffff;
}


.main-problem{
  margin-bottom: 70px;
}
.main-problem .problem-content{
  width: 1280px;
padding: 22px 54px;
background: #FFFFFF;
border-radius: 10px;
margin: 0 auto;
box-sizing: border-box;
margin-bottom: 20px;
cursor: pointer;
}
.problem-content .problem-title{
 font-weight: 600;
font-size: 18px;
color: #2B2E4A;
display: flex;
justify-content: space-between;
align-items: center;
}
.problem-title img{
  width: 26px;
  height: 18px;
}
.problem-content.active .problem-title img{
  transform: rotate(180deg);
}
.problem-content .problem-desc{
  margin-top: 10px;
 font-weight: 300;
font-size: 14px;
color: #2B2E4A;
line-height: 24px;
display: none;
}



.main-consult {
  padding: 50px 80px 50px;
  margin-top: 40px;
  width: 1280px;
  margin: 0 auto;
  background: linear-gradient( 90deg, #324FBC 0%, #4D71F8 70.63%, #496EF6 100%);
  border-radius: 26px;
  box-sizing: border-box;
  display: flex;
  font-size: 16px;
  color: #ffffff;
}
.consult-content {
  flex: 1;
}
.consult-content > div:first-child {
  font-weight: 600;
  font-size: 56px;
  line-height: 64px;
}
.consult-content > div:nth-child(2) {
  font-weight: 600;
  padding: 20px 0 27px;
}
.consult-phone {
  font-weight: 400;
  line-height: 26px;
}
.consult-btn {
  width: 230px;
  height: 52px;
  line-height: 52px;
  border-radius: 26px;
  /* border: 2px solid #3742fa; */
  text-align: center;
  color: #3742fa;
  box-sizing: border-box;
  align-self: end;
  background: #FFFFFF;
}
.consult-btn a {
  color: #3742fa;
  text-decoration: none;
}

.footer {
  margin-top: 80px;
  background: #ffffff;
}
.footer > div:first-child {
  display: flex;
  justify-content: space-between;
  width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
  padding-top: 80px;
  padding-bottom: 40px;
  border-bottom: 1px solid #979797;
}
.footer > div:first-child img {
  width: 130px;
  height: 20px;
}
.footer > div:first-child > div {
  width: 360px;
}
.footer > div:first-child > div > div {
  font-size: 12px;
  line-height: 24px;
}
.footer > div:first-child > div > div:first-child {
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 20px;
}
.footer > div:last-child {
  text-align: center;
  font-weight: bold;
  font-size: 12px;
  color: #6e6f81;
  padding: 20px 0;
}
.footer > div:last-child a {
  color: inherit;
  text-decoration: none;
}
.footer > div:first-child .footer-middle{
  width: 140px;
}
.footer-middle>div:not(:first-child){
  cursor: pointer;
}
.footer-middle>div:not(:first-child):hover{
  color: #1677ff;
}
.footer-middle a {
  color: inherit;
  text-decoration: none;
}
#nav a:hover{
  color: #3742fa;
}
/* 桌面端隐藏汉堡按钮 */
#nav-toggle {
  display: none;
}
.nav-toggle-btn {
  display: none;
}

@media (min-width: 992px){
  .head-bg{
    background: url('../static/index/headerBackground.webp') no-repeat 0 0;
    background-size: 100% auto;
  }
}

/* 平板及移动端导航折叠菜单 (≤991px) */
@media (max-width: 991px) {
  .nav-toggle-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 24px;
    cursor: pointer;
  }
  .nav-toggle-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background: #2b2e4a;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  /* 展开时汉堡按钮变为关闭图标 */
  #nav-toggle:checked ~ .nav-toggle-btn span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  #nav-toggle:checked ~ .nav-toggle-btn span:nth-child(2) {
    opacity: 0;
  }
  #nav-toggle:checked ~ .nav-toggle-btn span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  #header {
    position: relative;
    width: 100%;
    height: auto;
    padding: 16px 20px;
    box-sizing: border-box;
  }
  #logo {
    height: 22px;
  }
  #nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-size: 15px;
    background: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 100;
  }
  #nav > a {
    display: block;
    width: 100%;
    padding: 14px 4px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  }
  #nav > a:hover {
    background: #f4f5f6;
    color: #3742fa;
    padding-left: 14px;
  }
  #nav > a:last-child {
    border-bottom: none;
  }
  /* 勾选时展开导航 */
  #nav-toggle:checked ~ #nav {
    display: flex;
  }
}

/* 平板端适配 (768px - 991px) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  #introduce {
    height: auto;
    padding: 48px 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f5f6 100%);
  }
  .introduce-content {
    width: 100%;
    box-sizing: border-box;
  }
  .introduce-content div {
    font-size: 40px;
    line-height: 56px;
    text-align: center;
  }
  .introduce-content div:nth-child(2) {
    font-size: 14px;
    line-height: 24px;
    margin: 16px 0 0;
    padding: 0 24px;
  }
  .main-title {
    font-size: 40px;
    line-height: 56px;
    padding-top: 56px;
  }
  .main-desc {
    width: 90%;
    padding-bottom: 48px;
  }
  .main-classify {
    width: calc(100% - 48px);
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
  }
  .main-classify > div {
    margin-right: 0;
    padding: 9px 22px;
  }
  .main-problem .problem-content {
    width: calc(100% - 48px);
    padding: 22px 32px;
  }
  .problem-content .problem-title {
    font-size: 17px;
  }
  .main-consult {
    width: calc(100% - 48px);
    flex-direction: column;
    align-items: stretch;
    padding: 48px 28px;
    gap: 32px;
    text-align: center;
  }
  .consult-content > div:first-child {
    font-size: 40px;
    line-height: 52px;
  }
  .consult-btn {
    align-self: center;
  }
  .footer > div:first-child {
    width: 100%;
    padding: 48px 24px;
    flex-wrap: wrap;
    gap: 32px;
  }
  .footer > div:first-child > div {
    width: 45%;
  }
  .footer > div:first-child .footer-middle {
    width: 45%;
   }
}

/* 移动端适配 (<768px) */
@media (max-width: 767px) {
  #introduce {
    height: auto;
    padding: 32px 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f5f6 100%);
  }
  .introduce-content {
    width: 100%;
    box-sizing: border-box;
  }
  .introduce-content div {
    font-size: 26px;
    line-height: 38px;
    text-align: center;
  }
  .introduce-content div:nth-child(2) {
    font-size: 14px;
    line-height: 24px;
    margin: 14px 0 0;
  }
  .main-title {
    font-size: 26px;
    line-height: 38px;
    padding-top: 40px;
  }
  .main-desc {
    width: 92%;
    font-size: 14px;
    padding-bottom: 36px;
  }
  .main-classify {
    width: calc(100% - 32px);
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
  }
  .main-classify > div {
    margin-right: 0;
    padding: 8px 18px;
    font-size: 12px;
    border-radius: 18px;
  }
  .main-problem {
    margin-bottom: 40px;
  }
  .main-problem .problem-content {
    width: calc(100% - 32px);
    padding: 18px 20px;
    border-radius: 18px;
    margin-bottom: 14px;
  }
  .problem-content .problem-title {
    font-size: 15px;
  }
  .problem-title img {
    width: 22px;
    height: 14px;
  }
  .problem-content .problem-desc {
    font-size: 13px;
    line-height: 22px;
  }
  .main-consult {
    width: calc(100% - 32px);
    margin: 32px auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 36px 20px;
    border-radius: 18px;
    gap: 22px;
    text-align: center;
  }
  .consult-content > div:first-child {
    font-size: 26px;
    line-height: 38px;
  }
  .consult-content > div:nth-child(2) {
    font-size: 14px;
  }
  .consult-btn {
    width: 50%;
    align-self: center;
  }
  .footer {
    margin-top: 56px;
  }
  .footer > div:first-child {
    width: 100%;
    flex-direction: column;
    padding: 36px 20px;
    gap: 28px;
  }
  .footer > div:first-child > div {
    width: 100%;
  }
  .footer > div:first-child .footer-middle {
    width: 100%;
  }
  .footer > div:last-child {
    padding: 16px 20px;
    font-size: 11px;
    line-height: 18px;
  }
}
