:root {
  --primary-color: #004a98;
  --text-dark: #2d2a26;
  --text-light: #fff;
  --transition-duration: 0.3s;
  --container-padding: 1rem;
  --section-padding: 2rem 0;
}
body {
  font-family: 'Roboto', sans-serif;
  overflow-x: hidden;
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
  background: #fff;
}
/* 响应式基础样式 */
.contain,
.navbar .container,
.banner .container,
.blog .container,
footer .container,
footer .copyright {
  max-width: 1500px;
  width: 90%;
  margin: 0 auto;
  padding: var(--container-padding);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* 导航栏区域 */
.navbar {
  background-color: #002b49;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 0 1rem;
  transition: transform 0.3s ease-in-out;
  /* 移动端汉堡导航栏 */
  /* 导航菜单栏 */
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 7.5rem;
  padding: 0;
  position: relative;
}
.navbar .container .logo {
  height: 3.5rem;
  width: 120px;
}
.navbar .container .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.navbar .mobile-menu-toggle {
  display: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s;
}
.navbar .mobile-menu-toggle:hover {
  color: #ff9800;
}
.navbar .nav-items {
  display: flex;
  list-style: none;
  transition: all var(--transition-duration);
  /* 下拉菜单样式 */
}
.navbar .nav-items .nav-item {
  margin-left: 30px;
  position: relative;
  white-space: nowrap;
}
.navbar .nav-items .nav-item a {
  display: flex;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  padding: 0.8rem;
  transition: all 0.3s;
  align-items: center;
}
.navbar .nav-items .nav-item a p {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0;
}
.navbar .nav-items .nav-item a p span {
  margin-left: 5px;
}
.navbar .nav-items .nav-item:hover {
  background-color: #163e6a;
}
.navbar .nav-items .dropdown .dropdown-menu {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  display: flex;
  flex-wrap: wrap;
  top: 5.4rem;
  left: 0;
  background-color: #163e6a;
  width: 100vw;
  transition: all var(--transition-duration);
  list-style: none;
}
.navbar .nav-items .dropdown .dropdown-menu .dropdown-container {
  max-width: 1300px;
  width: 90%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.navbar .nav-items .dropdown .dropdown-menu .dropdown-container li {
  width: 33.33%;
  padding: 0.5rem 0;
  /* 移除左右内边距 */
  box-sizing: border-box;
}
.navbar .nav-items .dropdown .dropdown-menu .dropdown-container a {
  padding: 0.5rem 1rem;
  /* 添加左右内边距 */
}
.navbar .nav-items .dropdown .dropdown-menu li {
  width: 100%;
  padding: 0.5rem 0;
}
.navbar .nav-items .dropdown .dropdown-menu a {
  text-decoration: none;
  color: #8b9fb5;
  position: relative;
  padding: 0.5rem;
  display: block;
  font-size: 0.9rem;
  transition: all 0.3s;
}
.navbar .nav-items .dropdown .dropdown-menu a:hover {
  color: #fff;
  border: 1px solid white;
}
.navbar .nav-items .dropdown .dropdown-menu .laberText {
  color: #fff;
  width: 100%;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
  display: block;
}
.navbar .nav-items .dropdown .dropdown-menu .laberText .laber1 {
  display: inline-block;
  /* 使边框只包裹文本 */
  border-bottom: 2px solid #007bff;
  padding-bottom: 0.5rem;
  /* 添加底部内边距 */
}
.navbar .nav-items .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  top: 5.4rem;
}
/* banner区域 */
.banner {
  height: 500px;
  width: 100%;
  background: url(../Image/Blog/banner.jpg) center / cover;
}
.banner .container {
  position: relative;
  height: 100%;
}
.banner .container .text {
  position: absolute;
  height: auto;
  width: 670px;
  top: 30%;
}
.banner .container .text h3 {
  font-size: 48px;
  color: #fff;
  padding: 32px 0;
  border-bottom: 4px solid #557698;
  display: inline-block;
}
.banner .container .text p {
  font-size: 24px;
  color: #fff;
  margin: 20px 0;
}
/* blog区域 */
.blog {
  height: auto;
  width: 100%;
}
.blog .container {
  background-color: #fff;
  margin-bottom: 60px;
}
.blog .container .blogArea {
  height: auto;
  display: flex;
  flex-wrap: wrap;
  padding: 60px 48px 80px;
  justify-content: flex-start;
  gap: 20px;
}
.blog .container .blogArea .blogBox {
  height: auto;
  /* 改为自适应高度 */
  width: auto;
  /* 移除固定宽度 */
  flex: 0 0 calc(33.333% - 20px);
  /* 基础：一行3个卡片 */
  box-sizing: border-box;
  padding: 0 16px 16px;
}
.blog .container .blogArea .blogBox .blogPic {
  height: 190px;
  width: 100%;
  overflow: hidden;
}
.blog .container .blogArea .blogBox .blogPic img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.blog .container .blogArea .blogBox .blogLaber {
  padding: 20px;
  width: 100%;
  background-color: #f2f3f4;
}
.blog .container .blogArea .blogBox .blogLaber h3 {
  overflow: hidden;
  font-size: 20px;
  color: #002a49;
  margin-bottom: 20px;
  font-weight: 700;
  padding: 20px 0;
  border-bottom: 5px solid #163e6a;
}
.blog .container .blogArea .blogBox .blogLaber p {
  font-size: 16px;
  color: #0990cf;
}
.blog .container .btns {
  height: auto;
  width: 100%;
  background-color: #fff;
  display: flex;
  justify-content: space-evenly;
}
.blog .container .btns .left {
  height: 64px;
  width: 64px;
  background-color: #fff;
  border-radius: 0 0 20px 0;
  cursor: pointer;
  border: 1px #004a98 solid;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: transparent !important;
}
.blog .container .btns .left span {
  font-size: 20px;
  color: #004a98;
  position: relative;
  z-index: 1;
  transition: color 0.3s 0.1s;
  /* 添加0.1s延迟 */
}
.blog .container .btns .left:hover {
  border-color: #004a98;
}
.blog .container .btns .middle {
  height: 64px;
  width: auto;
}
.blog .container .btns .middle input {
  height: 64px;
  width: 64px;
  border: 1px #e8e5df solid;
  text-align: center;
  margin-right: 15px;
  color: #000;
  font-size: 19px;
  transition: all 0.3s ease;
  border: 1px solid #e8e5df;
  background: #fff;
}
.blog .container .btns .middle input:focus {
  border: 2px solid #000;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
.blog .container .btns .middle .text1 {
  color: #000;
  font-size: 19px;
  height: 20px;
  line-height: 20px;
  font-weight: 600;
}
.blog .container .btns .middle .text2 {
  color: #000;
  font-size: 19px;
  height: 20px;
  line-height: 20px;
  font-weight: 600;
  margin-left: 5px;
}
.blog .container .btns .right {
  height: 64px;
  width: 64px;
  background-color: #fff;
  border-radius: 0 0 20px 0;
  cursor: pointer;
  border: 1px #004a98 solid;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: transparent !important;
}
.blog .container .btns .right span {
  font-size: 20px;
  color: #004a98;
  position: relative;
  z-index: 1;
  transition: color 0.3s 0.1s;
  /* 添加0.1s延迟 */
}
.blog .container .btns .right:hover {
  border-color: #004a98;
}
.blog .container .btns .left::before,
.blog .container .btns .right::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #004a98;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.blog .container .btns .left:hover::before,
.blog .container .btns .right:hover::before {
  transform: translateX(100%);
}
.blog .container .btns .left:hover span,
.blog .container .btns .right:hover span {
  color: #fff !important;
}
.blog .container .btns button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.blog .container .btns button.disabled:hover {
  border-color: #e8e5df;
  background-color: transparent;
}
.blog .container .btns button.disabled:hover::before {
  transform: none;
}
.blog .container .btns button.disabled:hover span {
  color: #004a98 !important;
}
/* 底部区域 */
footer {
  position: relative;
  padding: 60px 0;
  background-color: #002a49;
  width: 100%;
  height: auto;
  /* 版权区域 */
  /* 返回顶部工具 */
}
footer .container {
  display: flex;
  width: 100%;
  overflow: hidden;
  margin-bottom: 60px;
  /* 信息栏1 */
  /* 信息栏2 、3*/
  /* 信息栏4 */
}
footer .container .box {
  height: auto;
  width: 25%;
  position: relative;
}
footer .container .box:before {
  content: '';
  position: absolute;
  right: -1px;
  top: 10%;
  height: 80%;
  width: 1px;
  background-color: #fff;
}
footer .container .box:nth-child(1) {
  padding: 0 1.5rem;
}
footer .container .box:nth-child(1) .top {
  display: flex;
  height: 50px;
  width: 100%;
}
footer .container .box:nth-child(1) .top a {
  height: 100%;
  width: 50%;
}
footer .container .box:nth-child(1) .top a img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
footer .container .box:nth-child(1) .top .text {
  font-size: 16px;
  padding-left: 2rem;
  height: 100%;
  width: 50%;
  color: #fff;
  border-left: #004a98 1px solid;
}
footer .container .box:nth-child(1) .top .text h4 {
  font-weight: 300;
}
footer .container .box:nth-child(1) .top .text h4 span {
  font-weight: 700;
}
footer .container .box:nth-child(1) .bottom {
  color: #fff;
  font-size: 0.875rem;
  margin-top: 30px;
}
footer .container .box:nth-child(2),
footer .container .box:nth-child(3) {
  padding: 0 1.5rem;
}
footer .container .box:nth-child(2) ul,
footer .container .box:nth-child(3) ul {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 80px 20px;
}
footer .container .box:nth-child(2) ul a,
footer .container .box:nth-child(3) ul a {
  font-size: 20px;
  color: #fff;
  transform: all 0.8s;
}
footer .container .box:nth-child(2) ul a:hover,
footer .container .box:nth-child(3) ul a:hover {
  color: #163e6a;
}
footer .container .box:nth-child(4) {
  padding: 0 1.5rem;
}
footer .container .box:nth-child(4) .laber {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}
footer .container .box:nth-child(4) p {
  margin-top: 20px;
  margin-bottom: 20px;
  color: #fff;
  font-size: 14px;
}
footer .container .box:nth-child(4) .form {
  position: relative;
  padding-bottom: 25px;
  /* 为错误提示预留空间 */
  /* 创建背景填充层 */
  /* 悬停时触发填充动画 */
  /* 错误状态样式 */
}
footer .container .box:nth-child(4) .form .input-container {
  position: relative;
  margin-bottom: 1.8rem;
  /* 增加间距防止重叠 */
  /* 错误提示样式 */
  /* 输入框聚焦效果 */
  /* 输入框聚焦时隐藏placeholder */
  /* 输入框中placholder样式 */
}
footer .container .box:nth-child(4) .form .input-container .error-message {
  position: absolute;
  bottom: -1.5rem;
  /* 在输入框下方显示 */
  left: 0;
  color: #c33339;
  font-size: 0.75rem;
  font-weight: 600;
  display: none;
  width: 100%;
}
footer .container .box:nth-child(4) .form .input-container input {
  height: 40px;
  width: 100%;
  border: 1px #fff solid;
  margin-bottom: 15px;
  background-color: #19405b;
  padding: 1rem 0.5rem;
  color: #fff;
  font-size: 20px;
}
footer .container .box:nth-child(4) .form .input-container input:focus {
  border: 2px solid #000 !important;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
footer .container .box:nth-child(4) .form .input-container input:focus::-webkit-input-placeholder {
  color: transparent;
}
footer .container .box:nth-child(4) .form .input-container input:focus::-moz-placeholder {
  color: transparent;
}
footer .container .box:nth-child(4) .form .input-container input:focus:-ms-input-placeholder {
  color: transparent;
}
footer .container .box:nth-child(4) .form .input-container input:focus::placeholder {
  color: transparent;
}
footer .container .box:nth-child(4) .form .input-container input::placeholder {
  margin-left: 10px;
  color: #bac5cd;
  font-size: 20px;
}
footer .container .box:nth-child(4) .form .input-container input.valid {
  border-color: #4CAF50 !important;
  /* 验证通过 - 绿色 */
}
footer .container .box:nth-child(4) .form .input-container input.invalid {
  border-color: #F44336 !important;
  /* 验证失败 - 红色 */
}
footer .container .box:nth-child(4) .form button {
  position: relative;
  height: 40px;
  width: 100%;
  background-color: #002a49;
  color: #fff;
  border: 1px #fff solid;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}
footer .container .box:nth-child(4) .form button span {
  position: relative;
  z-index: 1;
  transition: color 0.3s 0.1s;
}
footer .container .box:nth-child(4) .form button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #000;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
footer .container .box:nth-child(4) .form button:hover::before {
  transform: translateX(100%);
}
footer .container .box:nth-child(4) .form button:hover span {
  color: #fff !important;
}
footer .container .box:nth-child(4) .form .input-container.error input {
  border-color: #c33339;
}
footer .copyright {
  height: 50px;
  width: 100%;
  padding: 0;
}
footer .copyright span {
  color: #fff;
  height: 100%;
  width: 100%;
  right: 10px;
  font-size: 16px;
  line-height: 50px;
  display: block;
  text-align: right;
}
footer .tool {
  display: block;
  height: 48px;
  width: 90px;
  position: fixed;
  right: 60px;
  bottom: 60px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  transform: translateY(20px);
}
footer .tool img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
footer .tool.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
footer .tool:hover img {
  transform: translateY(-5px);
}
/* 响应式调整 */
@media (max-width: 1450px) {
  footer .container .box:nth-child(1) .top .text {
    font-size: 12px;
  }
}
@media (max-width: 1200px) {
  /* footer区域 */
  footer .container .box:nth-child(2) ul,
  footer .container .box:nth-child(3) ul {
    margin: 40px 20px;
  }
  footer .container .box:nth-child(1) .top .text {
    font-size: 12px;
  }
  footer .tool {
    right: 25px;
    bottom: 120px;
  }
  footer .copyright {
    padding-right: 1.25rem;
  }
}
@media (max-width: 992px) {
  /* 顶部导航区域 */
  .navbar .mobile-menu-toggle {
    display: block;
  }
  .navbar .nav-items {
    position: fixed;
    top: 7.5rem;
    left: 0;
    width: 100%;
    height: calc(100vh - 7.5rem);
    background-color: #002b49;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
  }
  .navbar .nav-items.active {
    transform: translateX(0);
  }
  .navbar .nav-items .nav-item {
    margin: 10px 0;
    width: 100%;
    text-align: center;
  }
  .navbar .nav-items .nav-item a {
    justify-content: center;
  }
  .navbar .nav-items .dropdown .dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0;
    margin-top: 10px;
  }
  .navbar .nav-items .dropdown .dropdown-menu.active {
    display: block;
  }
  .navbar .nav-items .dropdown .dropdown-menu .dropdown-container {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  .navbar .nav-items .dropdown .dropdown-menu .dropdown-container li {
    width: 100%;
    padding: 0.5rem 0;
  }
  .navbar .nav-items .dropdown .dropdown-menu .dropdown-container a {
    padding: 0.8rem 1rem;
    color: #8b9fb5;
  }
  .dropdown-toggle {
    position: relative;
  }
  .dropdown-toggle::after {
    content: ">";
    position: absolute;
    right: 15px;
    transform: rotate(90deg);
    transition: transform 0.3s;
  }
  .dropdown-toggle.active::after {
    transform: rotate(-90deg);
  }
  /* banner区域 */
  .banner {
    height: 400px;
  }
  .banner .container .text h3 {
    font-size: 2.5rem;
    padding: 24px 0;
    height: auto;
    line-height: 1.2;
    /* 增加行高 */
  }
  .banner .container .text p {
    font-size: 1.2rem;
  }
  /* blog区域 */
  .blog .container .blogArea .blogBox {
    flex: 0 0 calc(50% - 20px);
    /* 一行2个 */
  }
  /* 确保卡片居中 */
  .blog .container .blogArea {
    justify-content: center;
  }
  /* footer区域 */
  footer .container {
    flex-wrap: wrap;
    margin-bottom: 30px;
  }
  footer .container .box {
    width: 50%;
    margin-bottom: 30px;
  }
  /* 移除分隔线 */
  footer .container .box:before {
    display: none;
  }
  footer .container .box:nth-child(1),
  footer .container .box:nth-child(4) {
    width: 100%;
  }
  footer .container .box:nth-child(2) ul,
  footer .container .box:nth-child(3) ul {
    margin: 20px 0;
  }
  footer .container .box:nth-child(1) .top .text {
    padding-left: 1rem;
  }
  footer .copyright span {
    text-align: center;
  }
  footer .tool {
    right: 20px;
    bottom: 20px;
    height: 42px;
    width: 80px;
  }
}
@media (max-width: 768px) {
  /* 全局优化 */
  body {
    font-size: 14px;
  }
  /* banner区域 */
  .banner {
    height: 300px;
  }
  .banner .container .text h3 {
    font-size: 2rem;
    padding: 16px 0;
  }
  .banner .container .text p {
    font-size: 14px;
  }
  /* blog区域 */
  .blog .container .blogArea .blogBox {
    flex: 0 0 100%;
    /* 小屏幕：一行1个 */
  }
  /* footer区域 */
  footer .container {
    flex-wrap: wrap;
  }
  footer .container .box {
    width: 50% !important;
    margin-bottom: 2rem;
  }
  footer .container .box:nth-child(1),
  footer .container .box:nth-child(4) {
    width: 100%;
  }
  footer .container .box:nth-child(2) ul,
  footer .container .box:nth-child(3) ul {
    margin: 20px 0;
  }
  footer .container .box:nth-child(1) .top {
    flex-direction: column;
    height: auto;
  }
  footer .container .box:nth-child(1) .top a,
  footer .container .box:nth-child(1) .top .text {
    width: 100%;
    padding: 10px 0;
  }
  footer .container .box:nth-child(1) .top .text {
    border-left: none;
    border-top: 1px solid #004a98;
    padding-top: 15px;
  }
  footer .container .box:nth-child(4) .form input {
    font-size: 16px;
  }
  footer .tool {
    right: 15px;
    bottom: 15px;
    height: 36px;
    width: 70px;
  }
}
@media (max-width: 576px) {
  /* banner区域 */
  .banner {
    height: 300px;
  }
  .banner .container .text h3 {
    font-size: 1.8rem;
    padding: 12px 0;
    text-align: left;
  }
  .banner .container .text {
    top: 50%;
    width: 100%;
  }
  /* blog区域 */
  .blog .container .blogArea .blogBox {
    flex: 0 0 100%;
    /* 一行1个 */
  }
  .blog .container .blogArea .blogBox .blogLaber h3 {
    font-size: 14px;
  }
  .blog .container .blogArea .blogBox .blogLaber p {
    font-size: 14px;
  }
  .blog .container .blogArea {
    padding: 30px 16px;
  }
  /* footer区域 */
  footer {
    padding: 30px 0;
  }
  footer .container .box {
    width: 100% !important;
  }
  footer .container .box:nth-child(2) ul,
  footer .container .box:nth-child(3) ul {
    margin: 10px 0;
    gap: 0.8rem;
  }
  footer .container .box:nth-child(4) p {
    font-size: 13px;
  }
  footer .tool {
    right: 30px;
    bottom: 10px;
    height: 30px;
    width: 60px;
  }
}
