/* 全局样式 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.6;
  padding-top: 0;
}

body.has-fixed-navbar {
  padding-top: 56px;
}

/* 导航栏样式 */
.bg-primary {
  background-color: #4574b6 !important;
}
.navbar {
  background-color: transparent;
  transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  padding: 0.5rem 0;
}

.navbar.navbar-scrolled {
  background-color: #4574b6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 移动端导航背景不透明 */
@media (max-width: 991.98px) {
  .navbar {
    background-color: #4574b6 !important;
  }
  
  .navbar-collapse {
    background-color: #4574b6;
  }
}

.navbar-brand {
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand img {
  vertical-align: middle;
}

.navbar-company-name {
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

.navbar-dark .navbar-nav {
  align-items: center;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: #fff;
}

.navbar-dark .navbar-nav .nav-link:hover::after {
  width: 0%;
}

.navbar-dark .navbar-nav .nav-item.active .nav-link {
  color: #fff;
  font-weight: 500;
}

.navbar-dark .navbar-nav .nav-item.active .nav-link::after {
  width: 60%;
}

/* 页脚样式 */
.footer {
  margin-top: 50px;
  border-top: 1px solid #dee2e6;
  background-color: #f8f9fa;
}

.footer-logo h5 {
  color: #333;
  font-weight: 600;
}

.footer-title {
  color: #333;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  line-height: 2;
}

.footer-links li {
  margin-bottom: 0.3rem;
}

.footer a {
  color: #6c757d;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.9rem;
}

.footer a:hover {
  color: #007bff;
}

.footer-divider {
  border-top: 1px solid #dee2e6;
  opacity: 0.5;
}

.footer-copyright {
  color: #6c757d;
  font-size: 0.85rem;
}

.footer-qrcode {
  display: inline-block;
}

/* 公众号二维码浮窗样式 */
.qrcode-dropdown .dropdown-menu {
  display: none;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}

.qrcode-dropdown:hover .dropdown-menu {
  display: block;
}

.qrcode-popup {
  min-width: 200px;
}

/* 轮播图样式 */
.carousel {
  position: relative;
}

.carousel-item {
  height: 600px;
  background-color: #1a1a1a;
}

.carousel-item img {
  height: 600px;
  object-fit: cover;
  opacity: 0.85;
}

.carousel-caption {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  width: auto;
  text-align: left;
  padding: 20px;
  z-index: 10;
  right: auto;
  bottom: auto;
}

.carousel-subtitle {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 400;
  /* text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8); */
  margin-bottom: 1rem;
  line-height: 1.4;
  /* letter-spacing: 1rem; */
}

.carousel-title {
  color: #fff;
  font-size: 3rem;
  font-weight: normal;
  margin-bottom: 2rem;
  line-height: 1.2;
  /* letter-spacing: 2rem; */
}

.carousel-caption h1 {
  color: #fff;
  /* text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8); */
  margin-bottom: 1rem;
}

.carousel-caption h2 {
  color: #fff;
  /* text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8); */
}

.carousel-caption p {
  color: #fff;
  /* text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8); */
  font-size: 1.25rem;
}

.carousel-btn {
  padding: 0.75rem 2.5rem;
  font-size: 1rem;
  border-radius: 50px;
  border: 2px solid #fff;
  color: #fff;
  background-color: transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
}

.carousel-btn:hover {
  background-color: #fff;
  color: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.carousel-caption .btn {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  /* border-radius: 50px; */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
}

.carousel-caption .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .navbar-brand span {
    font-size: 0.9rem;
  }

  .footer .col-md-3 {
    text-align: center;
  }

  .qrcode-dropdown .dropdown-menu {
    right: auto !important;
    left: 0 !important;
  }

  .carousel-item,
  .carousel-item img {
    height: 550px;
  }

  .carousel-caption {
    width: 90%;
    left: 5%;
  }

  .carousel-caption h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem !important;
  }

  .carousel-caption h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem !important;
  }

  .carousel-caption p {
    font-size: 0.9rem;
  }

  .carousel-caption .btn {
    margin-top: 1.5rem !important;
  }
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
  }
}

/* 关于我们区块样式 */
.about-section {
  background-color: #f8f9fa;
}

.section-label {
  color: #333;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.label-icon {
  color: black;
  font-weight: bold;
  margin-right: 0.5rem;
}

.label-icon-light {
  color: white;
}

.section-title {
  color: #000;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
}

.about-text {
  color: #333;
  font-size: 1rem;
  line-height: 1.8;
  text-align: justify;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-stat {
  padding: 2rem 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.about-stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.stat-label {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  color: #000;
  font-size: 2.5rem;
  font-weight: 700;
}

.stat-unit {
  font-size: 1.2rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.5rem;
  }

  .stat-value {
    font-size: 2rem;
  }
}

/* 业务服务区块样式 */
.services-container {
  background-image: url("../images/home/service.webp");
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 1000px;
  position: relative;
}

.services-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: linear-gradient(135deg, rgba(66, 133, 244, 0.75) 0%, rgba(66, 133, 244, 0.85) 100%); */
}

.services-container .container {
  position: relative;
  z-index: 1;
  padding-top: 5rem;
}

/* 业务部分样式 */
.services-section {
  /* background: linear-gradient(135deg, #4574b6 0%, #2a5a8f 100%); */
  position: relative;
  overflow: hidden;
  /* padding: 80px 0; */
}

.services-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.services-container {
  position: relative;
  z-index: 1;
}

.services-title {
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.6;
}

.services-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.95;
}

.services-btn-wrapper {
  margin-top: 2rem;
}

.services-btn-wrapper .btn {
  padding: 0.6rem 2rem;
  border-width: 1px;
  border-radius: 0;
  font-weight: 400;
  transition: all 0.3s;
}

.services-btn-wrapper .btn:hover {
  background: #fff;
  color: #4574b6;
  transform: translateX(5px);
}

/* HiMat卡片样式 */
.service-card-himat {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  height: auto;
  min-height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card-himat:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

.himat-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px dashed #ccc;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem !important;
  width: 100%;
}

.himat-logo {
  width: auto;
  height: 32px;
  object-fit: contain;
}

.himat-subtitle {
  color: #333;
  font-size: 1.1rem;
  font-weight: 500;
  margin-left: 1rem;
}

.himat-desc {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 100%;
  padding-right: 90px;
  margin-bottom: 0 !important;
}

.himat-decoration {
  width: 80px;
  height: auto;
  opacity: 1;
  position: absolute;
  bottom: 20px;
  right: 20px;
  margin: 0;
}

/* 响应式设计 */
@media (max-width: 991px) {
  .services-section {
    padding: 60px 0;
  }

  .services-title {
    font-size: 1.75rem;
  }

  .services-desc {
    font-size: 1rem;
  }

  .service-card-himat {
    margin-top: 2rem;
  }
}

@media (max-width: 767px) {
  .services-section {
    padding: 50px 0;
  }

  .services-title {
    font-size: 1.5rem;
    text-align: center;
  }

  .services-desc {
    font-size: 0.95rem;
    text-align: center;
  }

  .services-btn-wrapper {
    text-align: center;
  }

  .services-btn-wrapper .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .service-card-himat {
    padding: 2rem 1.5rem;
  }

  .himat-subtitle {
    font-size: 1.25rem;
    margin-left: 0.5rem;
  }

  .himat-desc {
    font-size: 0.9rem;
  }

  .himat-logo {
    height: 40px;
  }

  .himat-decoration {
    max-width: 120px;
  }
}

@media (max-width: 575px) {
  .services-section {
    padding: 40px 0;
  }

  .services-title {
    font-size: 1.35rem;
  }

  .himat-header {
    justify-content: center;
    text-align: center;
  }

  .himat-subtitle {
    width: 100%;
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: inherit;
}

.service-card-primary .service-title {
  color: #fff;
}

.service-card-secondary .service-title {
  color: #333;
  font-size: 1.25rem;
}

.service-desc {
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* 背景图作为铺底层 */
.service-card .service-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: saturate(1) brightness(0.9);
}

.service-desc-sm {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
}

.service-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s;
}

.service-card-primary .service-link {
  color: #fff;
  border-bottom: 2px solid #fff;
}

.service-card-secondary .service-link {
  color: #007bff;
  border-bottom: 2px solid #007bff;
}

.service-link:hover {
  opacity: 0.8;
  padding-left: 5px;
}

.service-image {
  text-align: center;
}

.service-image img {
  max-width: 100%;
  height: auto;
}

/* 分公司区块样式 */
/* ===== 启程分公司部分样式 ===== */
.branch-section {
  /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); */
  position: relative;
  overflow: hidden;
}

.branch-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(69, 116, 182, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.branch-main-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.branch-main-desc {
  font-size: 1.1rem;
  color: #6c757d;
}

.branch-tabs-wrapper {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

.branch-tab-header {
  display: inline-block;
  border-bottom: 2px solid #e9ecef;
  padding: 0;
}

.branch-tab {
  padding: 1.25rem 2rem;
  background: transparent;
  border: none;
  color: #6c757d;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.branch-tab-icon {
  font-size: 1.2rem;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.branch-tab:hover {
  color: black;
  background: rgba(69, 116, 182, 0.05);
}

.branch-tab:hover .branch-tab-icon {
  opacity: 1;
  transform: translateY(-2px);
}

.branch-tab.active {
  color: black;
  background: #fff;
  font-weight: 700;
}

.branch-tab.active .branch-tab-icon {
  opacity: 1;
}

.branch-tab.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  width: 2rem;
  left: calc(50% - 1rem);
  right: 0;
  height: 3px;
  /* background: linear-gradient(90deg, #4574b6 0%, #5a8bd0 100%); */
  background: #12336c;
}

.branch-content-wrapper {
  padding: 3rem 0;
}

.branch-tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.branch-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.branch-content-title {
  color: #2c3e50;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.branch-location {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: #6c757d;
  margin-top: 0.75rem;
}

.branch-content-text {
  color: #555;
  font-size: 1rem;
  line-height: 1.9;
  text-align: justify;
  margin-bottom: 0;
}

.branch-highlights {
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
}

.highlight-item {
  text-align: center;
  padding: 1rem;
  border-radius: 12px;
  background: #f8f9fa;
  transition: all 0.3s ease;
}

.highlight-item:hover {
  background: #e9ecef;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.highlight-item i {
  font-size: 1.75rem;
  display: block;
}

.highlight-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #495057;
}

.branch-image-wrapper {
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  height: 100%;
  min-height: 200px;
}

.branch-image-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(69, 116, 182, 0.1) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.branch-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.branch-image-wrapper:hover .branch-main-image {
  transform: scale(1.05);
}

/* 响应式设计 */
/* 大屏幕 (≥1200px) */
@media (min-width: 1200px) {
  .branch-content-wrapper {
    padding: 3.5rem 0;
  }

  .branch-content-title {
    font-size: 2rem;
  }
}

/* 平板 (768px - 991px) */
@media (max-width: 991px) {
  .branch-main-title {
    font-size: 1.75rem;
  }

  .branch-content-wrapper {
    padding: 2rem 0;
  }

  .branch-content-title {
    font-size: 1.5rem;
  }

  .branch-image-wrapper {
    min-height: 350px;
  }
}

/* 小平板 (≤767px) */
@media (max-width: 767px) {
  .branch-main-title {
    font-size: 1.5rem;
  }

  .branch-main-desc {
    font-size: 1rem;
  }

  .branch-tab {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    flex-direction: column;
    gap: 0.25rem;
  }

  .branch-tab-icon {
    font-size: 1rem;
  }

  .branch-tab-text {
    font-size: 0.9rem;
  }

  .branch-content-wrapper {
    padding: 1.5rem 0;
  }

  .branch-content-title {
    font-size: 1.25rem;
  }

  .branch-content-text {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .branch-image-wrapper {
    min-height: 280px;
  }

  .highlight-item {
    padding: 0.75rem;
  }

  .highlight-item i {
    font-size: 1.5rem;
  }

  .highlight-text {
    font-size: 0.85rem;
  }
}

/* 手机 (≤575px) */
@media (max-width: 575px) {
  .branch-section {
    padding: 2rem 0 !important;
  }

  .branch-main-title {
    font-size: 1.35rem;
  }

  .branch-main-desc {
    font-size: 0.9rem;
  }

  .branch-tabs-wrapper {
    border-radius: 12px;
  }

  .branch-tab {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .branch-tab-icon {
    display: none;
  }

  .branch-content-wrapper {
    padding: 1rem 0;
  }

  .branch-content-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  .branch-location {
    font-size: 0.85rem;
  }

  .branch-content-text {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .branch-image-wrapper {
    min-height: 220px;
    border-radius: 12px;
  }

  .branch-highlights {
    padding-top: 1rem;
  }

  .highlight-item {
    padding: 0.5rem;
    border-radius: 8px;
  }

  .highlight-item i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem !important;
  }

  .highlight-text {
    font-size: 0.75rem;
  }
}

/* 新闻详情页样式 */
.news-detail-title {
  font-size: 2.2rem;
  line-height: 1.3;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.news-detail-meta {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.news-detail-content {
  font-size: 1.1rem;
  line-height: 2;
  color: #444;
}

.news-detail-content p {
  margin-bottom: 1.5rem;
}

.news-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.news-detail-caption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
  text-align: center;
}

.news-detail-subtitle {
  font-size: 1.25rem;
  font-weight: bold;
  color: #333;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-left: 4px solid #4574b6;
  padding-left: 1rem;
}

@media (max-width: 768px) {
  .news-detail-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .news-detail-title {
    font-size: 1.35rem;
    line-height: 1.3;
  }
  .news-detail-content {
    font-size: 1rem;
    line-height: 1.8;
  }
  .news-detail-meta {
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
}

.news-subtitle {
  color: #333;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

/* 新闻轮播样式 */
.news-carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 0 60px;
}

.news-carousel-container {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
  height: 20rem;
}

.news-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
  flex: 0 0 calc(33.333% - 14px);
  min-width: calc(33.333% - 14px);
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.news-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
}

.news-title {
  color: #333;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 轮播控制按钮 */
.news-carousel-control {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(69, 116, 182, 0.8);
  border: none;
  border-radius: 50%;
  opacity: 0.9;
  transition: all 0.3s;
  cursor: pointer;
}

.news-carousel-control:hover {
  background-color: rgba(69, 116, 182, 1);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.news-carousel-control:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.news-carousel-prev {
  left: 0;
}

.news-carousel-next {
  right: 0;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px;
  height: 20px;
  background-size: 100%;
}

/* 轮播指示器 */
.news-carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.news-carousel-indicators .indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: all 0.3s;
}

.news-carousel-indicators .indicator:hover {
  background-color: #999;
}

.news-carousel-indicators .indicator.active {
  background-color: #4574b6;
  width: 30px;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .news-carousel-wrapper {
    padding: 0; /* 移动端移除左右padding，利用全宽 */
  }

  .news-card {
    flex: 0 0 100%;
    min-width: 100%;
    margin-right: 0; /* 确保没有额外的margin影响计算 */
  }

  .news-subtitle {
    font-size: 1.25rem;
  }

  .news-image {
    height: 200px; /* 稍微增加高度 */
  }

  .news-title {
    font-size: 1.1rem; /* 稍微增大标题 */
  }

  /* 移动端隐藏左右切换按钮，使用滑动交互 */
  .news-carousel-control {
    display: none;
  }

  .news-carousel-indicators {
    margin-top: 20px;
  }
}

@media screen and (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }
}

/* 联系我们样式 */
.contact-section {
  background-color: #fff;
}

.contact-title {
  color: #333;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
}

/* 联系方式卡片 */
.contact-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s;
  height: 100%;
}

.contact-card:hover {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.contact-icon {
  width: 70px;
  height: 70px;
  background: #4574b6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: #fff;
}

.contact-card-title {
  color: #333;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-card-text {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* 联系表单 */
.contact-form {
  background: #fff;
  padding: 0;
}

.contact-form .form-label {
  color: #333;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.contact-form .form-control {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.contact-form .form-control:focus {
  background: #fff;
  border-color: #4574b6;
  box-shadow: 0 0 0 3px rgba(69, 116, 182, 0.1);
}

.contact-form .form-control::placeholder {
  color: #999;
}

.contact-submit-btn {
  background: #4574b6;
  border: none;
  border-radius: 6px;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s;
  margin-top: 1rem;
  color: white;
}

.contact-submit-btn:hover {
  background: #3a5f96;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(69, 116, 182, 0.3);
}

/* 新版联系表单样式 */
.contact-input-group {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.contact-input-group:hover {
  background-color: #e9ecef;
}

.contact-input-group:focus-within {
  background-color: #fff;
  border-color: #4574b6;
  box-shadow: 0 0 0 3px rgba(69, 116, 182, 0.1);
}

.contact-input-group label {
  margin-bottom: 0;
  margin-right: 1rem;
  white-space: nowrap;
  color: #333;
  font-weight: 500;
  min-width: 4em; /* Ensure alignment for short labels */
}

.contact-input-group .form-control {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  text-align: right;
  padding: 0;
  height: auto;
  color: #333;
  font-weight: 500;
}

.contact-input-group .form-control:focus {
  box-shadow: none;
  outline: none;
}

.contact-input-group .form-control::placeholder {
  color: #adb5bd;
  font-weight: normal;
}

.contact-input-group select.form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  direction: ltr;
  text-align: right;
  text-align-last: right;
  padding-right: 1.5rem;
  flex: 1;
  width: 100%;
  min-width: 0;
}

.contact-input-group select.form-control option {
  direction: ltr;
  text-align: left;
  background-color: #fff;
  color: #333;
}

.contact-input-group.textarea-group {
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem 1.25rem;
}

.contact-input-group.textarea-group label {
  margin-bottom: 0.75rem;
  width: 100%;
}

.contact-input-group.textarea-group textarea.form-control {
  text-align: left;
  width: 100%;
  resize: none;
}

/* ==================== 新闻列表页面样式 ==================== */
.breadcrumb-section {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.breadcrumb {
  padding: 0.5rem 0;
  margin: 0;
}

.breadcrumb-item a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb-item a:hover {
  color: #4574b6;
}

.breadcrumb-item.active {
  color: #333;
  font-weight: 500;
}

.news-list-section {
  background-color: #fff;
  min-height: 70vh;
}

.news-list-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 1.5rem;
  border-radius: 8px;
}

.news-list-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.news-list-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-list-image img {
  transition: transform 0.3s ease;
  width: 100%;
  height: auto;
  display: block;
}

.news-list-item:hover .news-list-image img {
  transform: scale(1.05);
}

.news-list-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  line-height: 1.6;
  margin-bottom: 1rem;
  transition: color 0.3s;
}

.news-list-item:hover .news-list-title {
  color: #4574b6;
}

.news-list-excerpt {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-list-meta {
  font-size: 0.875rem;
  color: #999;
}

.news-list-section hr {
  border-top: 1px solid #e9ecef;
  margin: 2rem 0;
}

/* 分页样式 */
.pagination {
  margin-top: 3rem;
}

.page-link {
  color: #4574b6;
  border: 1px solid #dee2e6;
  padding: 0.5rem 0.75rem;
  margin: 0 0.25rem;
  border-radius: 4px;
  transition: all 0.3s;
}

.page-link:hover {
  color: #fff;
  background-color: #4574b6;
  border-color: #4574b6;
}

.page-item.active .page-link {
  background-color: #4574b6;
  border-color: #4574b6;
  color: #fff;
}

.page-item.disabled .page-link {
  color: #6c757d;
  background-color: #fff;
  border-color: #dee2e6;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .news-list-title {
    font-size: 1.1rem;
  }

  .news-list-excerpt {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .news-list-item {
    padding: 1rem;
  }

  .pagination {
    font-size: 0.875rem;
  }

  .page-link {
    padding: 0.4rem 0.6rem;
    margin: 0 0.15rem;
  }
}

/* ==================== 服务页面样式 ==================== */
.services-intro-section {
  background-color: #fff;
  min-height: 70vh;
}

.service-item {
  margin-bottom: 2rem;
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  text-decoration: none !important;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  transition: transform 0.5s ease;
}

.service-card:hover .service-bg-img {
  transform: scale(1.05);
}

.service-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  transition: background 0.3s ease;
}

.service-card:hover .service-overlay {
  background: rgba(0, 0, 0, 0);
}

.service-card-lg {
  height: 400px;
}

.service-card-md {
  height: 300px;
}

.service-title {
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.service-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  opacity: 0.95;
}

.service-btn {
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 0.375rem 1.5rem;
  font-size: 0.9rem;
  backdrop-filter: blur(2px);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}

.service-btn:hover {
  background-color: #fff;
  color: #333;
  border-color: #fff;
}

@media (max-width: 768px) {
  .service-card-lg,
  .service-card-md {
    height: auto;
    min-height: 250px;
    display: flex;
    flex-direction: column;
  }

  .service-overlay {
    flex: 1;
  }

  .service-bg-img {
    position: absolute;
    height: 100%;
  }
}

/* ==================== 新闻详情页样式 ==================== */
.news-detail-section {
  padding-top: 100px !important;
  background-color: #fff;
}

.news-detail-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.4;
  margin-bottom: 0;
}

.news-detail-meta {
  font-size: 0.9rem;
  color: #7f8c8d;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e9ecef;
}

.news-detail-meta span {
  display: inline-block;
}

.news-detail-banner {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-detail-banner img {
  border-radius: 8px;
}

.news-detail-content {
  max-width: 900px;
  margin: 0 auto;
}

.news-detail-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #34495e;
}

.news-detail-text p {
  text-align: justify;
}

.news-detail-text ul {
  padding-left: 2rem;
}

.news-detail-text ul li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.news-detail-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-top: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #4574b6;
}

.news-detail-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.news-detail-image img {
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.news-detail-image:hover img {
  transform: scale(1.02);
}

/* 联系方式卡片新样式 */
.contact-info-card {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  align-items: center;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info-card .icon-wrapper {
  margin-right: 1.5rem;
  font-size: 2rem;
  color: #333;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

.contact-info-card .content-wrapper {
  flex: 1;
}

.contact-info-card .label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.contact-info-card .value {
  font-size: 1.1rem;
  color: #333;
  font-weight: 500;
  line-height: 1.4;
  word-break: break-all;
}

.badge-24h {
  font-size: 0.6rem;
  font-weight: bold;
  position: absolute;
  top: 0;
  right: -5px;
  background: #333;
  color: #fff;
  padding: 1px 3px;
  border-radius: 4px;
  line-height: 1;
}

/* News Detail Equal Height Images */
.news-img-equal-height {
  height: 300px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .news-img-equal-height {
    height: 200px;
  }
}

/* ����˵����������˵���ͣ���뵭�� */
@media (min-width: 992px) {
  .branch-dropdown .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease-in-out;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin-top: 0;
    background-color: #fff;
    padding: 0.5rem 0;
  }

  /* 修复鼠标移入菜单时的间隙问题 */
  .branch-dropdown .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
  }

  .branch-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .branch-dropdown .nav-link::after {
    transition: transform 0.3s;
  }

  .branch-dropdown:hover .nav-link::after {
    transform: rotate(180deg);
  }
}

.branch-dropdown .dropdown-item {
  /* padding: 0.7rem 1.5rem; */
  font-size: 0.95rem;
  transition: all 0.2s;
  color: #333;
}

.branch-dropdown .dropdown-item:hover {
  background-color: #f8f9fa;
  color: #4574b6;
  /* padding-left: 1.8rem; */
}

/* ==================== 移动端样式优化 ==================== */
@media (max-width: 991px) {
  /* 修复服务容器高度 */
  .services-container {
    height: auto;
    min-height: 100vh;
    padding-bottom: 3rem;
  }
  
  .services-container .container {
    padding-top: 6rem;
  }
}

@media (max-width: 768px) {
  /* 修复新闻轮播高度 */
  .news-carousel-container {
    height: auto;
    min-height: 28rem;
  }
  
  .news-card {
    height: auto;
    min-height: 100%;
  }
  
  .news-content {
    flex: 1 1 auto;
  }

  /* 修复HiMat卡片样式 */
  .himat-desc {
    padding-right: 0 !important;
  }
  
  .himat-decoration {
    position: static;
    margin-top: 1rem;
    width: 60px;
    float: right;
  }
  
  /* 联系表单移动端优化 */
  .contact-input-group {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .contact-input-group label {
    margin-bottom: 0.5rem;
    width: 100%;
  }
  
  .contact-input-group .form-control,
  .contact-input-group select.form-control {
    text-align: left;
    text-align-last: left;
    padding-right: 0;
    width: 100%;
  }
  
  /* 联系方式卡片优化 */
  .contact-info-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    justify-content: center;
  }
  
  .contact-info-card .icon-wrapper {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .contact-info-card .content-wrapper {
    width: 100%;
  }
  
  .contact-info-card .value {
    word-break: break-all;
  }
}

/* Service Detail Banner Styles */
.service-banner {
  padding-top: 76px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.service-banner .row {
  min-height: 400px;
}

.banner-text {
  padding: 40px 0;
}

.banner-logo-wrapper {
  display: inline-block;
  padding: 8px 20px;
  margin-bottom: 1.5rem;
}

.banner-logo {
  width: 41.6rem;
  max-width: 100%;
  height: auto;
}

.banner-title {
  font-size: 1.6rem;
  color: #1298f1;
  font-weight: 500;
  margin-bottom: 1rem;
}

.banner-subtitle {
  font-size: 1.6rem;
  color: #1298f1;
  margin-bottom: 1.5rem;
}

.banner-btn {
  padding: 12px 40px;
  border-radius: 25px;
  font-size: 1.1rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .service-banner {
    padding-top: 60px;
    background-size: cover;
  }
  
  .service-banner .row {
    min-height: 300px;
    text-align: center;
  }
  
  .banner-logo {
    width: 100%;
    max-width: 300px;
  }
  
  .banner-title, 
  .banner-subtitle {
    font-size: 1.2rem;
  }
  
  .banner-btn {
    padding: 10px 30px;
    font-size: 1rem;
  }
}

