.mtb {
  margin-top: 6rem;
  margin-bottom: 6rem;
}

.ptb {
  padding-top: 6rem;
  padding-bottom: 6rem;
}


/* ===== 顶部黑色信息栏 ===== */

.c-topbar {
  background-color: #000000;
  color: #ffffff;
  padding: 8px 0;
  font-size: 0.9rem;
}

.c-topbar-info {
  display: flex;
  align-items: center;
  gap: 24px;
}

.c-topbar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.c-topbar-item:hover {
  color: #ffffff;
  opacity: 0.8;
}

.c-topbar-item i {
  font-size: 1rem;
  color: #ffffff;
}

@media (max-width: 767.98px) {
  .c-topbar {
    display: none;
  }
}


/* 导航栏 */
.custom-header {
  background-color: #0f2c54;
  color: #ffffff;
  position: relative;
  width: 100%;
  z-index: 1030;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.custom-header .header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  padding: 0.5rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* 左侧Logo区域 */
.header-logo {
  flex-shrink: 0;
  margin-right: 1rem;
}

@media (max-width: 499px) {
  .header-logo {
    flex-shrink: 1;
  }
}

/* 中间导航区域 - 大屏显示 */
.header-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 1rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 1rem;
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 4px;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.nav-link.active,
.nav-link:hover {
  background-color: #0341d8;
  color: #ffffff;
}

.arrow-icon {
  font-size: 0.75rem;
  margin-left: 0.2rem;
  transition: transform 0.2s;
}

/* 使用伪元素扩大热区，同时保持视觉不变 */
.nav-item.dropdown {
  position: relative;
}

/* 透明桥接层：从菜单项底部延伸到二级菜单顶部，确保移动鼠标时不会意外消失 */
.nav-item.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  /* 紧贴菜单项底部 */
  left: 0;
  width: 100%;
  height: 12px;
  /* 12px 的透明过渡带，鼠标可以安全滑过 */
  background: transparent;
  z-index: 1020;
  pointer-events: auto;
  /* 允许鼠标悬停在这片区域 */
}

/* 二级菜单容器 */
.dropdown-menu-custom {
  position: absolute;
  top: calc(100% + 12px);
  /* 比原来下移12px，正好接在透明桥之后 */
  left: 0;
  min-width: 200px;
  max-width: 300px;
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  display: none;
  z-index: 1050;
  margin-top: 0;
}

/* 显示二级菜单时，增加一个上方的伪元素保护？ 但已有父级伪元素，无需重复 */
.dropdown-menu-custom.show {
  display: block;
}

/* 为二级菜单本身也增加一个顶部透明区，双重保险（可选） */
.dropdown-menu-custom::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
  background: transparent;
  pointer-events: auto;
}

.dropdown-menu-custom a {
  display: block;
  padding: 0.6rem 1rem;
  color: #0f2c54;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s;
  /* white-space: nowrap; */
}

.dropdown-menu-custom a:hover {
  background-color: #e6f0ff;
  color: #0341d8;
}

/* 右侧功能区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* 语言切换器 */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.2s;
}

.lang-btn:hover {
  background-color: #0341d8;
  border-color: #0341d8;
}

.fake-flag {
  font-size: 1.2rem;
  line-height: 1;
}

.lang-dropdown {
  position: absolute;
  top: 120%;
  right: 0;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  min-width: 150px;
  display: none;
  z-index: 1060;
  padding: 0.5rem 0;
  margin-bottom: 0;
  max-height: 270px;
  overflow-y: auto;
}

.lang-dropdown.show {
  display: block;
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  color: #0f2c54;
  text-decoration: none;
  font-size: 0.95rem;
}

.lang-dropdown a:hover {
  background-color: #f0f4ff;
  color: #0341d8;
}

/* 搜索按钮 */
.search-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
}

.search-btn:hover {
  background-color: #0341d8;
}

/* 搜索弹层 */
.search-overlay {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #0f2c54;
  padding: 1.5rem 1rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 1040;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.search-overlay.show {
  display: block;
}

.search-container {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
}

.search-container input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 40px;
  outline: none;
  font-size: 1rem;
}

.search-container button {
  background-color: #0341d8;
  border: none;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s;
}

/* 移动端导航按钮 */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  font-size: 1.5rem;
  padding: 0.2rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 0.5rem;
}

.mobile-menu-wrapper {
  display: none;
}

/* 屏幕适配：当宽度不够时，隐藏中间的nav菜单，显示移动端按钮 */
@media (max-width: 992px) {
  .header-nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-block;
  }

  .mobile-menu-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #0f2c54;
    max-height: 80vh;
    overflow-y: auto;
    padding: 1rem;
    border-top: 1px solid #305a8a;
    display: none;
    z-index: 1050;
  }

  .mobile-menu-wrapper.show {
    display: block;
  }

  .mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mobile-nav-item {
    border-bottom: 1px solid #1a3f6a;
  }

  .mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0.5rem;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
  }

  .mobile-nav-link .link-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .mobile-arrow {
    cursor: pointer;
    width: 40px;
    text-align: center;
    transition: transform 0.2s;
  }

  .mobile-arrow i {
    pointer-events: none;
  }

  .mobile-submenu {
    list-style: none;
    padding-left: 1.5rem;
    display: none;
    background-color: #0b2342;
    margin: 0;
  }

  .mobile-submenu.show {
    display: block;
  }

  .mobile-submenu a {
    display: block;
    padding: 0.7rem 1rem;
    color: #cfdfee;
    text-decoration: none;
    border-bottom: 1px solid #1f4170;
  }

  .mobile-submenu a:hover {
    background-color: #0341d8;
    color: white;
  }

  .mobile-nav-link.active {
    background-color: #0341d8;
  }
}

@media (max-width: 480px) {
  .lang-btn span:last-child {
    display: none;
  }
}


/* 首页轮播图 */
.main-hero .swiper-container-horizontal>.swiper-pagination {
  bottom: 0px !important;
}

.main-hero .swiper-button-prev,
.main-hero .swiper-button-next {
  background-image: none !important;
  width: 44px;
  height: 44px;
}

.main-hero .swiper-button-prev::after {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f053";
  display: block;
  font-size: 36px;
  color: #0341d8;
}

.main-hero .swiper-button-next::after {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f054";
  display: block;
  font-size: 36px;
  color: #0341d8;
}

.main-hero .swiper-button-prev::before,
.main-hero .swiper-button-next::before {
  display: none;
}

@media (max-width: 992px) {
  .main-hero .swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet {
    width: 30px;
  }

  .main-hero .swiper-button-prev::after,
  .main-hero .swiper-button-next::after {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .main-hero .swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet {
    width: 15px;
  }
}


/* 新闻 */
.zm-news-section {
  padding: 84px 0 60px;
}

.zm-news-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ===== 新闻卡片 ===== */
.zm-news-card {
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
  border: 1px solid #eef2f6;
  transition: all 0.25s ease;
}

.zm-news-card:hover {
  box-shadow: 0 15px 30px rgba(0, 53, 102, 0.12);
  border-color: #d0dbe8;
}

.zm-news-card:hover .zm-news-img-wrapper img {
  transform: scale(1.05);
}

/* ===== 左侧图片区域 ===== */
.zm-news-img-wrapper {
  height: 100%;
  min-height: 200px;
  background-color: #e9edf2;
  overflow: hidden;
}

.zm-news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: all ease .5s;
}

/* ===== 右侧内容区域 ===== */
.zm-news-content {
  padding: 24px 24px 24px 12px;
}

/* 移动端调整内边距 */
@media (max-width: 767.98px) {
  .zm-news-content {
    padding: 20px 16px;
  }
}

.zm-news-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #0f2c54;
  margin-bottom: 12px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 575.98px) {
  .zm-news-title {
    font-size: 1.3rem;
  }
}

.zm-news-desc {
  font-size: 1rem;
  color: #4a5568;
  margin-bottom: 20px;
  line-height: 1.7;
  opacity: 0.85;
}

/* ===== 详情按钮 ===== */
.zm-news-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #0341d8;
  /* 与导航栏高亮色一致 */
  color: #ffffff;
  padding: 10px 26px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.zm-news-btn:hover {
  background-color: #022e9a;
  color: #ffffff;
}

.zm-news-btn:active {
  transform: scale(0.97);
}

.zm-news-btn i {
  font-size: 0.85rem;
}

/* 备用图片样式 (无图片时显示占位) */
.zm-img-placeholder {
  background: linear-gradient(145deg, #e0e5ec, #f0f4fa);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a9bb5;
  font-size: 3rem;
}

/* 确保Bootstrap栅格间距合适 */
.row.g-0 {
  margin: 0;
}


/* 案例 */
.zm-case-section {
  padding: 60px 0;
  background-color: #ffffff;
}

/* 案例卡片 */
.zm-case-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #eef2f6;
  height: 100%;
  /* 确保卡片高度一致 */
}

.zm-case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(15, 44, 84, 0.1);
  border-color: #d0dbe8;
}

.zm-case-img-wrapper {
  width: 100%;
  overflow: hidden;
}

/* 图片样式 */
.zm-case-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.zm-case-card:hover .zm-case-img {
  transform: scale(1.05);
}

.zm-app-card .zm-news-img-wrapper a {
  display: flex;
  height: 320px;
  overflow: hidden;
}

.zm-app-card .zm-news-img-wrapper a img {
  width: 100%;
  height: auto;
  object-position: center;
}


/* 案例标题 */
.zm-case-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f2c54;
  margin: 16px 12px 16px 12px;
  text-align: center;
  line-height: 1.4;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 移动端适配：小屏幕时一行显示2个卡片 */
@media (max-width: 575.98px) {
  .zm-case-title {
    font-size: 1rem;
    margin: 12px 8px;
    min-height: calc(1rem * 1.4 * 2);
  }
}

.pages-container .page-item a,
.pages-container .page-item span {
  color: #222;
}

.single-section .post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  color: #000;
}

.single-section .post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.single-section .post-meta span a {
  color: #000;
}

.single-blog-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.single-blog-nav a {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #000;
}

.page-content {
  font-size: 1.15rem;
  color: #000;
  line-height: 1.8;
  margin-bottom: 0;
}

.page-content p {
  margin-bottom: 0;
}

/* 分页 */
.pagination {
  margin-bottom: 0;
}

.pagination .page-link:focus,
.pagination .page-link:active {
  outline: none !important;
  box-shadow: none !important;
}

/* 当前位置 */
.zm-breadcrumb-wrapper {
  background-color: transparent;
  border-bottom: 1px solid #e9ecef;
}

.zm-breadcrumb-link {
  color: #0f2c54;
  text-decoration: none;
}

.zm-breadcrumb-link:hover {
  color: #0341d8;
}

.zm-breadcrumb-current {
  color: #6c757d;
  font-weight: 500;
}

.zm-breadcrumb-wrapper.dark-bg {
  background-color: #0f2c54;
  border-bottom-color: #305a8a;
}

.dark-bg .zm-breadcrumb-link {
  color: #ffffff;
}

.dark-bg .zm-breadcrumb-link:hover {
  color: #e0e0e0;
}

.dark-bg .zm-breadcrumb-current {
  color: #cfdfee;
}

.zm-breadcrumb-wrapper.no-border {
  border-bottom: none;
}

@media (max-width: 575.98px) {
  .zm-breadcrumb-wrapper {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
}

/* 我们的优势 */
.advantage-section {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.advantage-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  gap: 20px;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 50px 25px;
  text-align: center;
}

.advantage-card-icon {
  font-size: 36px;
  color: #0341d8;
}

.advantage-card-tit {
  font-size: 24px;
}

/* 合作伙伴 */
.partner-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #ffffff;
  border-radius: 8px;
  text-align: center;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.partner-card-img {
  height: 120px;
  padding: 30px 10px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.partner-card p {
  background-color: #f5f5f5;
  line-height: 1.5;
  padding: 10px;
  margin: 0;
  font-size: 14px;
}


/* Footer底部 */
.c-footer-widget-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
  margin-bottom: 15px;
}

.c-footer-form form input,
.c-footer-form-btn {
  width: 100%;
  height: 40px;
  line-height: 40px;
  padding: 0 10px;
  background-color: #fff;
  border: none;
  font-size: 16px;
  border-radius: 5px;
}

.c-footer-form-btn {
  background: #0341d8;
  padding: 0 30px;
  color: #fff;
  max-width: 120px;
}


/* 联系我们页面 */
.zm-contact-section {
  background-color: #ffffff;
}

/* 板块标题 */
.zm-contact-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #0f2c54;
  margin-bottom: 8px;
}

.zm-contact-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
}

/* ===== 表单样式 ===== */
.zm-contact-form-wrapper {
  background-color: #f8f9fa;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
  height: 100%;
}

.zm-form-label {
  font-weight: 500;
  color: #0f2c54;
  margin-bottom: 6px;
}

.zm-form-control {
  border: 1px solid #e0e7ef;
  border-radius: 8px;
  padding: 12px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.zm-form-control:focus {
  border-color: #0341d8;
  box-shadow: 0 0 0 3px rgba(3, 65, 216, 0.1);
  outline: none;
}

.zm-submit-btn {
  background-color: #0341d8;
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 40px;
  font-weight: 500;
  border: none;
  width: 100%;
  transition: background-color 0.2s;
}

.zm-submit-btn:hover {
  background-color: #022e9a;
  color: #ffffff;
}

/* ===== 联系信息样式 ===== */
.zm-contact-info-wrapper {
  padding: 20px 0 20px 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (max-width: 991.98px) {
  .zm-contact-info-wrapper {
    padding: 40px 0 0 0;
  }
}

.zm-info-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.zm-info-icon {
  width: 50px;
  height: 50px;
  background-color: #eef4ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0341d8;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.zm-info-content {
  flex: 1;
}

.zm-info-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0f2c54;
  margin-bottom: 8px;
}

.zm-info-text {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ===== 地图预留区域 ===== */
.zm-map-wrapper {
  width: 100%;
  height: 500px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-top: 40px;
}

.zm-map-container {
  width: 100%;
  height: 450px;
  /* 地图高度，可根据需要调整 */
  background-color: #f0f4fa;
  position: relative;
}

/* 地图占位样式（当Google地图未加载时显示） */
.zm-map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8a9bb5;
  font-size: 1.2rem;
  gap: 16px;
  background-color: #e9edf2;
}

.zm-map-placeholder i {
  font-size: 3rem;
  color: #0f2c54;
  opacity: 0.5;
}

/* 移动端调整 */
@media (max-width: 575.98px) {
  .zm-contact-title {
    font-size: 2rem;
  }

  .zm-contact-form-wrapper {
    padding: 24px;
  }

  .zm-map-container {
    height: 350px;
  }

  .zm-info-item {
    gap: 15px;
  }

  .zm-info-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/* 常见问题 */
.faq-accordion {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-accordion:not(:last-child) {
  margin-bottom: 15px;
}

.faq-accordion.active {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}

.faq-question {
  padding: 20px;
  background-color: #0341d8;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  color: #fff;
}

.faq-accordion.active .faq-question {
  background-color: #0341d8;
  color: var(--primary-color);
}

.faq-question h5 {
  width: calc(100% - 30px);
  margin: 0;
  font-weight: 600;
  font-size: 18px;
  color: #fff;
}

.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  transition: all 0.3s ease;
}

.faq-icon span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.faq-icon span:first-child {
  top: 50%;
  transform: translateY(-50%);
}

.faq-icon span:last-child {
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
}

.faq-accordion.active .faq-icon span:last-child {
  transform: translateY(-50%) rotate(0deg);
  opacity: 0;
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.faq-accordion.active .faq-answer {
  padding: 20px;
  max-height: 500px;
}

.faq-answer-content {
  color: #555;
  line-height: 1.6;
}

.faq-footer {
  text-align: center;
  padding: 20px;
  background: var(--light-bg);
  border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .faq-question {
    padding: 15px;
  }

  .faq-question h5 {
    font-size: 16px;
  }
}

@media (min-width: 1200px) {
  .category-section .container {
    padding: 0 120px;
    width: 100%;
    max-width: 100%;
  }
}

.pro-title {
  font-size: 22px;
  padding: 10px 0;
}

.pro-title a {
  width: 100%;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

@media (max-width: 992px) {
  .pro-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .pro-title {
    font-size: 18px;
  }
}

/* 产品 */
.ps-category-sidebar {
  background-color: #f8f9fa;
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  border: 1px solid #eee;
}

.ps-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #222;
  border-bottom: 2px solid #0341d8;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

/* 分类列表样式 */
.ps-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ps-category-item {
  margin-bottom: 15px;
}

.ps-category-link {
  display: block;
  color: #222;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

.ps-category-link:hover {
  color: #0341d8;
}

/* 激活分类状态 (可动态添加类 .active) */
.ps-category-link.ps-active {
  color: #0341d8;
}

/* ----- 右侧产品卡片区域 ----- */
.ps-product-grid {
  padding-left: 1rem;
}

/* 卡片外层 */
.ps-card {
  border: none;
  border-radius: 1.2rem;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
}

.ps-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.1);
}

/* 卡片图片区域 */
.ps-card-img {
  width: 100%;
  object-fit: cover;
  background-color: #f0f0f0;
}

/* 卡片主体 */
.ps-card-body {
  padding: 1.25rem 1rem 1.5rem;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ps-product-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 查看按钮 — 使用主色 #0341d8 */
.ps-btn-view {
  display: inline-block;
  background-color: #0341d8;
  color: #fff;
  border: none;
  padding: 0.6rem 1.8rem;
  border-radius: 3rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
  align-self: center;
  /* 按钮居中 */
  min-width: 120px;
}

.ps-btn-view:hover {
  background-color: #06309e;
  color: #fff;
  box-shadow: 0 4px 10px rgba(56, 156, 113, 0.3);
}

/* 右侧标题行 */
.ps-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.ps-section-header h2 {
  color: #222;
  font-weight: 600;
  margin: 0;
}

.ps-badge {
  background-color: #0341d8;
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 2rem;
  font-size: 0.9rem;
}

@media (max-width: 767px) {
  .ps-product-grid {
    padding-left: 0;
    margin-top: 2rem;
  }

  .ps-category-sidebar {
    margin-bottom: 1rem;
  }
}

.ps-demo-img {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-size: 0.9rem;
}

/* 产品内页 */
.product-single-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
}

.product-gallery .swiper {
  width: 100%;
  height: 100%;
}

.product-gallery .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f0f0;
}

.product-gallery .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery .big-swiper {
  width: 100%;
  position: relative;
}

.product-gallery .thumb-swiper {
  width: 100%;
  margin-top: 20px;
}

.product-gallery .swiper-slide {
  background-size: cover;
  background-position: center;
}

.product-gallery .thumb-swiper .swiper-slide {
  width: 25%;
  height: 100%;
  opacity: 0.4;
}

.product-gallery .thumb-swiper .swiper-slide-thumb-active {
  opacity: 1;
  border: solid 1px #666666 !important;
}

.product-gallery .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery .swiper-button-prev:after,
.product-gallery .swiper-button-next:after {
  font-family: 'Font Awesome 6 Free';
  font-weight: 600;
  content: '';
  font-size: 36px !important;
  color: #666666 !important;
}

.product-gallery .swiper-button-prev:after {
  content: '\f053';
}

.product-gallery .swiper-button-next:after {
  content: '\f054';
}

.product-gallery .swiper-button-prev,
.product-gallery .swiper-button-next {
  background-image: none !important;
}

.product-short-desc {
  font-size: 18px;
}