/* ===== 返回顶部 ===== */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  /* 默认大屏位置 */
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  cursor: pointer;
  display: none;
  /* 默认隐藏，JS 控制出现 */
  place-items: center;
  z-index: 9999;
  transition: opacity .3s, transform .3s;
}

.back-top:hover {
  transform: scale(1.1);
}

.back-top img {
  width: 24px;
  height: 24px;
}

/* ===== 右下角悬浮客服 ===== */
.float-kefu {
  position: fixed;
  right: 20px;
  bottom: 220px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* 关键：不让它撑开页面 */
  max-width: 48px;
  /* 只等于一个按钮宽 */
  pointer-events: none;
  /* 防止内部元素意外撑开 */
}

.float-kefu>* {
  pointer-events: auto;
  /* 按钮本身可点 */
}

.kefu-item {
  position: relative;
  width: 48px;
  height: 48px;
  background: #165DFF;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  cursor: pointer;
  transition: transform .3s;
}

.kefu-item:hover {
  transform: scale(1.1);
}

.kefu-icon {
  width: 24px;
  height: 24px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 弹出层公共样式 */
.kefu-popup {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  padding: 12px 16px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
  font-size: 14px;
  color: #333;
}

.wechat-popup {
  width: 180px;
  text-align: center;
}

.wechat-popup .qr-code {
  width: 140px;
  height: 140px;
  margin: 0 auto 8px;
  display: block;
}

.phone-popup {
  line-height: 1.4;
}

.kefu-item.wechat:hover .wechat-popup,
.kefu-item.phone:hover .phone-popup,
.kefu-item.email:hover .email-popup {
  opacity: 1;
  visibility: visible;
}

.email-popup {
  line-height: 1.4;
}

.float-kefu .kefu-item.wechat {
  background-color: #4CAF50;
}

.footer {
  border-top: 0.5px solid #ebebeb;
  background: #ffffff;
  color: #f0f6fc;
  padding: 60px 0 20px;
  -webkit-font-smoothing: antialiased;
}

.footer-content {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-col:first-child {
  padding-right: 40px;
}

.footer-title {
  font-size: 26px;
  font-weight: 600;
  color: rgb(0, 0, 0);
  margin-bottom: 16px;
  letter-spacing: .5px;
}

.footer-text {
  font-size: 15px;
  line-height: 1.8;
  color: #4e5154;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.social-icon {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f5f6f7;
  background-size: 24px;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-color .25s;
}


/* 未选中图标 */
.social-icon.whatsapp {
  background-image: url(/icons/whatsapp-unselect.svg);
}

/* 选中状态 */
.social-icon.whatsapp:hover,
.social-icon.whatsapp:focus {
  background-color: #4CAF50;
  /* 红色背景 */
  background-image: url(/icons/whatsapp.svg);
}

/* 未选中图标 */
.social-icon.Youtube {
  background-image: url(/icons/Youtube-unselect.svg);
}

/* 选中状态 */
.social-icon.Youtube:hover,
.social-icon.Youtube:focus {
  background-color: #FF0033;
  /* 红色背景 */
  background-image: url(/icons/Youtube-select.svg);
}

/* 未选中图标 */
.social-icon.tiktok {
  background-image: url(/icons/tiktok.svg);
}

/* 选中状态 */
.social-icon.tiktok:hover,
.social-icon.tiktok:focus {
  background-color: #000000;
  /* 红色背景 */
  background-image: url(/icons/tiktok-select.svg);
}


/* 未选中图标 */
.social-icon.ins {
  background-image: url(/icons/instagram-unselect.svg);
}

/* 选中状态 */
.social-icon.ins:hover,
.social-icon.ins:focus {
  background-color: #E1306C;
  /* 红色背景 */
  background-image: url(/icons/instagram-select.svg);
}

/* 未选中图标 */
.social-icon.x {
  background-image: url(/icons/X-unselect.svg);
}

/* 选中状态 */
.social-icon.x:hover,
.social-icon.x:focus {
  background-color: #000;
  /* 红色背景 */
  background-image: url(/icons/X-select.svg);
}

/* 未选中图标 */
.social-icon.facebook {
  background-image: url(/icons/facebook-unselect.svg);
}

/* 选中状态 */
.social-icon.facebook:hover,
.social-icon.facebook:focus {
  background-color: #1877f2;
  ;
  /* 红色背景 */
  background-image: url(/icons/facebook.svg);
}

/* 中间两列链接 */
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-list a {
  color: #4e5154;
  font-size: 14px;
  text-decoration: none;
  transition: color .2s;
}

.footer-list a:hover {
  color: rgb(26, 115, 232);
}

/* 右侧联系信息 */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  font-size: 14px;
  color: #4e5154;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-icon {
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  color: #58a6ff;
}

/* 分割线保持原样 */
.footer-separator {
  border: none;
  border-top: 1px solid #21262d;
  width: 90%;
  max-width: 1400px;
  margin: 32px auto 16px;
}


.footer-bottom-wrapper {
  margin: 0 auto;
  box-sizing: border-box;
  max-width: 1400px;
  width: 90%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.footer-bottom {
  width: 1400px;
  font-size: 12px;
  color: #6e7681;
  display: flex;
  flex-direction: row;
  justify-content: space-between;


}

.footer-bottom a {
  color: #6e7681;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: rgb(26, 115, 232);
}

/* 导航栏容器 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  z-index: 1000;
}

.nav-container {
  width: 100%;
  /* ✅ 关键：先占满父级 */
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  padding: 0 20px;
  box-sizing: border-box;
  /* ✅ 防止 padding 把宽度撑爆 */
}

.nav-logo img {
  height: 90px;
  width: auto;
  display: block;
  transition: height 0.3s;
}

/* 汉堡菜单按钮 - 移动端显示 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* 导航列表 - 桌面端样式 */
.nav-list {
  display: flex;
  list-style: none;
  gap: 5px;
  align-items: stretch;
}

.nav-item {
  position: relative;
}

.nav-link {
  cursor: pointer;
  display: block;
  padding: 30px 15px;
  text-decoration: none;
  color: #000;
  font-size: 18px;
  font-weight: 500;
  transition: color .3s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-item:hover>.nav-link {
  color: rgb(26, 115, 232);
}

/* 激活状态颜色 */
.nav-link.active {
  color: rgb(26, 115, 232);
}

/* 下拉菜单基础样式 */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 180px;
  padding: 8px 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
  border-radius: 6px;
  list-style: none;
  z-index: 1000;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-link {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: #333;
  font-size: 16px;
}

.dropdown-link:hover {
  background: #f5f5f5;
  color: #000;
}

/* 当悬停父级导航项时显示下拉菜单 */
.nav-item.dropdown:hover>.dropdown-menu {
  display: block;
}

/* =========  联系我们  ========= */
.contact-section {
  padding: 30px 0px;
  background: rgb(247, 249, 252);

  /* 调整整体高度 */
}

.contact-container {
  display: flex;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  /* 调整阴影 */
  border-radius: 10px;
  max-width: 1400px;
  /* 限制最大宽度 */
  margin: 0 auto;
}

.contact-info {
  flex: 1;
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  color: white;
  padding: 40px;
  /* 调整内边距 */
}

.contact-info h2 {
  font-size: 2.1rem;
  /* 调整标题大小 */
  margin-bottom: 15px;
}

.contact-info p {
  font-size: 19px;
  margin-bottom: 50px;
  opacity: 0.9;
  line-height: 1.7;
}

.contact-details {
  margin-top: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  /* 调整间距 */
}

.contact-icon {
  width: 50px;
  /* 调整图标大小 */
  height: 50px;
  margin-right: 10px;
  margin-top: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}


.contact-icon .icon-img {
  width: 30px;
  height: 30px;
}

.contact-text h3 {
  font-size: 1.5rem;
  /* 调整文本大小 */
  margin-bottom: 5px;
}

.contact-text p {
  margin-bottom: 0;
  opacity: 0.9;
}

.contact-form {
  flex: 1;
  padding: 40px;
  /* 调整内边距 */
}

.form-title {
  font-size: 1.5rem;
  color: #1a365d;
  margin-bottom: 20px;
  text-align: center;
}

.form-group {
  margin-bottom: 15px;
  /* 调整间距 */
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #2d3748;
}

.required::after {
  content: "*";
  color: #e53e3e;
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  /* 调整输入框内边距 */
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.9rem;
  /* 调整字体大小 */
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

textarea.form-control {
  min-height: 100px;
  /* 调整最小高度 */
  resize: vertical;
}

.submit-btn {
  background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
  color: white;
  border: none;
  padding: 12px 25px;
  /* 调整按钮内边距 */
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(6, 153, 225, 0.4);
}

/* 通用占位 */
img.lazy {
  opacity: 0;
  transition: opacity .3s;
}

img.lazy.loaded {
  opacity: 1;
}

.components-title {
  font-size: 39px;
  font-weight: 700;
  color: #111;
  text-align: center;
  margin-bottom: 30px;
}

/* ========= 移动端适配 ========= */
@media (max-width: 768px) {
  .contact-section {
    padding: 20px 15px;
  }

  .contact-container {
    flex-direction: column;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
  }

  .contact-info {
    padding: 30px 20px;
    order: 2;
    /* 将联系信息移到表单下方 */
  }

  .contact-info h2 {
    font-size: 1.8rem;
    text-align: center;
  }

  .contact-info p {
    font-size: 16px;
    text-align: center;
    line-height: 1.6;
  }

  .contact-item {
    margin-bottom: 25px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-icon {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .contact-text h3 {
    font-size: 1.3rem;
  }

  .contact-form {
    padding: 30px 20px;
    order: 1;
  }

  .form-title {
    font-size: 1.3rem;
  }

  .breadcrumb-inner {
    margin-left: 30px !important;
  }
}

@media (max-width: 480px) {
  .contact-info {
    padding: 25px 15px;
  }

  .contact-info h2 {
    font-size: 1.6rem;
  }

  .contact-info p {
    font-size: 15px;
  }

  .contact-form {
    padding: 25px 15px;
  }

  .form-title {
    font-size: 1.2rem;
  }

  .contact-text h3 {
    font-size: 1.2rem;
  }

  .contact-icon {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .submit-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .form-control {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  textarea.form-control {
    min-height: 80px;
  }
}

/* 平板端样式 */
@media (max-width: 1024px) {
  .nav-container {
    height: 80px;
    padding: 0 15px;
  }



  .nav-link {
    padding: 25px 12px;
    font-size: 13px;
  }
}

/* 移动端样式 */
@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }

  .nav-container {
    height: 80px;
    padding: 0 15px;
    max-width: 100%;
  }

  /* 显示汉堡菜单按钮 */
  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  /* 导航菜单 - 移动端样式 */
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 80px 20px 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, .1);
    transition: right 0.3s ease;
    overflow-y: auto;
    gap: 0;
  }

  .nav-list.active {
    right: 0;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  .nav-link {
    position: relative;
    /* 为绝对定位的箭头添加 */
    padding: 15px 40px 15px 10px;
    /* 右侧留出箭头空间 */
    font-size: 16px;
    white-space: normal;
    cursor: pointer;
  }

  /* 移动端下拉菜单样式 */
  .dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    background: #f9f9f9;
  }

  /* 确保.active类能正确显示菜单 */
  .nav-item.dropdown .dropdown-menu.active {
    display: block !important;
  }

  /* 关键：在移动端禁用hover效果 */
  .nav-item.dropdown:hover>.dropdown-menu {
    display: none !important;
  }

  /* 移动端只通过.active类控制显示 */
  .nav-item.dropdown.active>.dropdown-menu,
  .dropdown-menu.active {
    display: block !important;
  }

  /* 移动端下拉菜单指示器 - 修改为可点击区域 */
  .nav-item.dropdown>.nav-link::after {
    content: '+';
    position: absolute;
    /* 改为绝对定位 */
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s;
  }

  .nav-item.dropdown.active>.nav-link::after {
    content: '-';
    transform: translateY(-50%);
    /* 只保留垂直居中，不旋转 */
  }

  .dropdown-link {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
  }

  /* 汉堡菜单动画 */
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* 小屏手机优化 */
@media (max-width: 480px) {
  .nav-container {
    height: 70px;
    padding: 0 10px;
  }



  .nav-list {
    max-width: 280px;
  }

  .nav-link {
    padding: 12px 8px;
    font-size: 15px;
  }

  .dropdown-link {
    padding: 10px 15px;
    font-size: 14px;
  }
}

/* 超小屏手机优化 */
@media (max-width: 360px) {
  .nav-container {
    height: 65px;
    padding: 0 8px;
  }


  .nav-list {
    max-width: none;
  }

  .nav-link {
    padding: 10px 5px;
    font-size: 14px;
  }
}

/* 桌面端：联系我们 背景高亮 */
.nav-item:last-child>.nav-link {
  background: rgb(26, 115, 232);
  /* 品牌蓝 */
  color: #fff !important;
  border-radius: 20px;
  padding: 9px 20px;
  /* 比普通链接稍大 */
  margin-left: 20px;
  margin-top: 20px;
}

.nav-item:last-child>.nav-link:hover {
  background: rgb(13, 71, 161);
  /* 悬停加深 */
}

/* 移动端：横向占满、圆角取消 */
@media (max-width: 768px) {
  .nav-item:last-child {
    background: #388AD5;
    border-bottom: none;
  }

  .nav-item:last-child>.nav-link {
    color: #fff !important;
    border-radius: 0;
    padding: 18px 20px;
    margin: 0;
  }
}

/* ========== Footer 移动端适配 ========== */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
  }

  .footer-col:first-child {
    grid-column: 1 / -1;
    padding-right: 0;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 40px 0 20px;
  }

  .footer-content {
    width: 95%;
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-col:first-child {
    grid-column: 1;
    padding-right: 0;
    text-align: center;
    margin-bottom: 0;
  }

  .footer-title {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .footer-text {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 25px;
  }

  /* 社交图标居中并调整大小 */
  .footer-socials {
    justify-content: center;
    gap: 15px;
  }

  .social-icon {
    width: 40px;
    height: 40px;
    background-size: 20px;
  }

  /* 链接列表适配 */
  .footer-col:nth-child(2),
  .footer-col:nth-child(3),
  .footer-col:nth-child(4) {
    text-align: center;
  }

  .footer-list {
    gap: 8px;
  }

  .footer-list a {
    font-size: 15px;
    display: inline-block;
    padding: 4px 0;
  }

  /* 联系信息适配 */
  .footer-contact {
    gap: 10px;
    font-size: 15px;
  }

  .footer-contact-item {
    justify-content: center;
    text-align: center;
  }

  .footer-icon {
    width: 16px;
  }

  /* 分割线适配 */
  .footer-separator {
    width: 95%;
    margin: 25px auto 12px;
  }

  /* 底部备案信息适配 */
  .footer-bottom {
    padding: 0 5%;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-bottom span {
    text-align: center;
    order: 2;
  }

  .footer-sitemap {
    margin-left: 0;
    order: 1;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 30px 0 15px;
  }

  .footer-content {
    gap: 30px;
  }

  .footer-title {
    font-size: 20px;
  }

  .footer-text {
    font-size: 13px;
    margin-bottom: 20px;
  }

  /* 社交图标进一步缩小 */
  .footer-socials {
    gap: 12px;
  }

  .social-icon {
    width: 36px;
    height: 36px;
    background-size: 18px;
  }

  /* 链接列表进一步优化 */
  .footer-list a {
    font-size: 14px;
  }

  /* 联系信息进一步优化 */
  .footer-contact {
    font-size: 14px;
    gap: 8px;
  }

  .footer-contact-item {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .footer-icon {
    width: 14px;
  }

  /* 底部备案信息进一步优化 */
  .footer-bottom {
    font-size: 11px;
    gap: 8px;
  }
}

/* 横屏手机适配 */
@media (max-width: 768px) and (orientation: landscape) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-col:first-child {
    grid-column: 1 / -1;
    text-align: left;
  }

  .footer-socials {
    justify-content: flex-start;
  }

  .footer-contact-item {
    justify-content: flex-start;
    flex-direction: row;
  }
}

/* 平板设备适配 */
@media (min-width: 769px) and (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 35px;
  }

  .footer-col:first-child {
    padding-right: 20px;
  }
}



/* 确保链接在移动端易于点击 */
@media (max-width: 768px) {
  .footer-list a {
    padding: 8px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .social-icon {
    min-width: 44px;
    min-height: 44px;
  }
}

/* 超小屏幕特殊处理 */
@media (max-width: 360px) {
  .footer-socials {
    gap: 10px;
  }

  .social-icon {
    width: 34px;
    height: 34px;
    background-size: 16px;
  }

  .footer-list a {
    font-size: 13px;
    padding: 6px 0;
  }
}

/* ===== 移动端适配 ===== */
@media (max-width: 1024px) {
  .float-kefu {
    right: 8px;
    bottom: 80px;
    gap: 8px;
  }

  .back-top {
    right: 8px;
    bottom: 20px;
    width: 42px;
    height: 42px;
  }

  .kefu-item {
    width: 42px;
    /* 按钮稍微缩小 */
    height: 42px;
  }

  .kefu-icon {
    width: 22px;
    height: 22px;
  }

  .kefu-popup {
    right: 52px;
    /* 弹出层跟着左移 */
  }
}

/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
  .back-top {
    right: 8px;
    /* 贴边更近，不撑开页面 */
    bottom: 20px;
    /* 悬浮客服上方，避免重叠 */
    width: 42px;
    /* 稍微缩小，省空间 */
    height: 42px;
  }

  .back-top img {
    width: 22px;
    height: 22px;
  }
}