/* Fonts */
:root {
  --font-default: "Asap", system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
  --font-primary: "Poppins", sans-serif;
  --font-secondary: "Inter", sans-serif;

/* Colors */
  --color-primary: #1677ff;
  --color-secondary: #202020;
  --color-secondary-light: #565656;
  --color-accent: #666;
  --color-accent-light: #d1d4dc;
}

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  line-height: 1.7;
  background: #fff;
  color: #171717;
  font-weight: 400;
  font-size: 1rem;
  font-family: var(--font-default);
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  overflow-x: hidden;
  background-image: url("/img/bg.jpg");
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
}

.hover-lift {
  transition: all 0.2s ease-in-out;
}

.hover-lift:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Pulse Animation*/
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
.pulse-animation {
  animation: pulse 2s infinite;
}

.blurred-text {
	filter: blur(4px);
	transition: filter 0.3s ease-in-out;
	display: inline-block;
	min-width: 150px;
	text-align: center;
	cursor: pointer;
}
.blurred-text.unblurred {
	filter: blur(0);
}
		
/*--------------------------------------------------------------
# Site-wrap
--------------------------------------------------------------*/
.site-wrap {
  max-width: 1500px;
  margin: 0 auto;
  position: relative;
  -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1);
  background: #fff;
}

.site-wrap:before {
  -webkit-transition: .3s all ease-in-out;
  -o-transition: .3s all ease-in-out;
  transition: .3s all ease-in-out;
  background: rgba(0, 0, 0, 0.6);
  content: "";
  position: absolute;
  z-index: 2000;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  visibility: hidden;
}

/* Dropdown Arrow Indicator */
.navbar-nav .dropdown-toggle::after {
  transition: transform 0.3s ease;
}

.navbar-nav .dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.navbar-nav .nav-link.active {
  color: var(--color-primary);
  font-weight: 600;
}

/*--------------------------------------------------------------
# Sections & Section Header
--------------------------------------------------------------*/
section {
  padding: 80px 0;
  overflow: hidden;
}

.section-bg {
  background-color: #f5f6f7;
}

.section-header {
  text-align: center;
  padding-bottom: 70px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  position: relative;
  color: #2e3135;
}

.section-header h2:before,
.section-header h2:after {
  content: "";
  width: 50px;
  height: 2px;
  background: var(--color-primary);
  display: inline-block;
  transition: width 0.4s ease;
}

.section-header h2:before {
  margin: 0 15px 10px 0;
}

.section-header h2:after {
  margin: 0 0 10px 15px;
}

.section-header p {
  margin: 0 auto;
  color: var(--color-secondary);
}

.section-header:hover h2::before,
.section-header:hover h2::after {
  width: 70px;
}

@media (min-width: 1199px) {
  .section-header p {
    max-width: 60%;
  }
}

/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/
.breadcrumbs {
  padding: 60px 0 60px 0;
  min-height: 30vh;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.breadcrumbs:before {
  content: "";
  background-color: rgba(0, 0, 0, 0.6);
  position: absolute;
  inset: 0;
}

.breadcrumbs h2 {
  font-size: clamp(1.25rem, 4vw, 72px);
  font-weight: 500;
  color: #fff;
  font-family: var(--font-secondary);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0 0 10px 0;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
}

.breadcrumbs ol a {
  color: rgba(255, 255, 255, 0.8);
  transition: 0.3s;
}

.breadcrumbs ol a:hover {
  text-decoration: underline;
}

.breadcrumbs ol li + li {
  padding-left: 10px;
}

.breadcrumbs ol li + li::before {
  display: inline-block;
  padding-right: 10px;
  color: #fff;
  content: "/";
}

/*--------------------------------------------------------------
# Card Section
--------------------------------------------------------------*/
.card-item {
  border: 1px solid rgba(82, 86, 94, 0.2);
  background: #fff;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-item .card-bg {
  transition: transform 0.5s ease; /* 保留卡片本身的过渡效果 */
  position: relative;
  overflow: hidden; /* 裁剪超出区域的图片内容 */
}

.card-item .card-bg img {
  min-height: 300px; 
  width: 100%;
  height: 100%;
  object-fit: cover; /* 让图片像 background-size: cover 一样填充并裁剪 */
  object-position: center; /* 让图片像 background-position: center 一样居中 */
  display: block; /* 移除图片默认的底部间隙 */
}
.card-item .card-body {
  padding: 30px;
}

.card-item h4 {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--color-secondary);
}

.card-item p {
  color: var(--color-accent);
  margin: 0;
}

.card-item:hover .card-bg {
  transform: scale(1.05);
}

/*--------------------------------------------------------------
# Alt Services Section
--------------------------------------------------------------*/
.alt-services .img-bg {
  background-size: cover;
  background-position: center center;
  min-height: 400px;
}

.alt-services h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.alt-services h3:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--color-primary);
  left: 0;
  bottom: 0;
}

.alt-services .icon-box {
  margin-top: 50px;
}

.alt-services .icon-box i {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-right: 25px;
  font-size: 28px;
  width: 56px;
  height: 56px;
  border-radius: 4px;
  line-height: 0;
  box-shadow: 0px 2px 30px rgba(0, 0, 0, 0.08);
  background-color: #fff;
  transition: 0.3s;
}

.alt-services .icon-box:hover i {
  background-color: var(--color-primary);
  color: #fff;
}

.alt-services .icon-box h4 {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 18px;
}

.alt-services .icon-box h4 a {
  color: #000;
  transition: 0.3s;
}

.alt-services .icon-box h4 a:hover {
  color: var(--color-primary);
}

.alt-services .icon-box p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Features Section
--------------------------------------------------------------*/
.features .nav-tabs {
  border: 0;
}

.features .nav-link {
  padding: 15px 0;
  transition: 0.3s;
  color: var(--color-secondary);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  height: 100%;
  border: 0;
  border-bottom: 4px solid #e2e4e6;
}

.features .nav-link i {
  padding-right: 15px;
  font-size: 48px;
}

.features .nav-link h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

@media (max-width: 575px) {
  .features .nav-link h4 {
    font-size: 16px;
  }
}

.features .nav-link:hover {
  color: var(--color-primary);
}

.features .nav-link.active {
  color: var(--color-primary);
  background-color: transparent;
  border-color: var(--color-primary);
}

.features .tab-content {
  margin-top: 30px;
}

.features .tab-pane h3 {
  font-weight: 700;
  font-size: 32px;
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.features .tab-pane h3:after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  left: 0;
  bottom: 0;
}

.features .tab-pane ul {
  list-style: none;
  padding: 0;
}

.features .tab-pane ul li {
  padding-top: 10px;
}

.features .tab-pane ul i {
  font-size: 20px;
  padding-right: 4px;
}

.features .tab-pane p:last-child {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.info-item {
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
  padding: 20px 0 30px 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.info-item i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 24px;
  line-height: 0;
  color: var(--color-primary);
  border-radius: 50%;
  border: 2px dotted var(--color-primary);
  transition: transform 0.3s ease, color 0.3s ease;
}

.info-item:hover i {
  transform: rotate(10deg);
}

.info-item h3 {
  font-size: 20px;
  color: #6c757d;
  font-weight: 700;
  margin: 10px 0;
}

.info-item p {
  padding: 0;
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Recent Blog Posts Section
--------------------------------------------------------------*/
.post-item {
  border-radius: 8px;
  box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.post-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.post-item .post-img img {
  transition: transform 0.5s ease;
}

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

.post-item .post-date {
  position: absolute;
  right: 0;
  bottom: 0;
  background-color: var(--color-primary);
  color: #fff;
  text-transform: uppercase;
  font-size: 13px;
  padding: 6px 12px;
  font-weight: 500;
}

.post-item .post-content {
  padding: 30px;
}

.post-item .post-title {
  font-size: 24px;
  color: var(--color-secondary);
  font-weight: 700;
  transition: 0.3s;
  margin-bottom: 15px;
}

.post-item:hover .post-title{
  color: var(--color-primary);
}

.post-item .meta i {
  font-size: 16px;
  color: var(--color-primary);
}

.post-item .meta span {
  font-size: 15px;
  color: #838893;
}

.post-item hr {
  color: #888;
  margin: 20px 0;
}

.post-item .readmore {
  display: flex;
  align-items: center;
  font-weight: 600;
  line-height: 1;
  transition: 0.3s;
  color: var(--color-primary);
}

.post-item:hover .readmore{
  text-decoration: underline;
}
.post-item .readmore i {
  line-height: 0;
  margin-left: 6px;
  font-size: 16px;
}

/*--------------------------------------------------------------
# Blog
--------------------------------------------------------------*/
.news-pagination {
  margin-top: 30px;
  color: #838893;
}

.news-pagination ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}

.news-pagination li {
  margin: 0 5px;
  transition: 0.3s;
}

.news-pagination li a {
  color: var(--color-secondary);
  padding: 7px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-pagination li.active,
.news-pagination li:hover {
  background: var(--color-primary);
  color: #fff;
}

.news-pagination li.active a,
.news-pagination li:hover a {
  color: var(--color-white);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  font-size: 14px;
  position: relative;
}

.footer .footer-legal {
  padding: 1em 0;
  color: rgba(255, 255, 255, 0.5);
}

.footer .footer-legal .copyright {
  color: #666;
  padding-top: 20px;
}

.footer .footer-legal .beian {
  padding-top: 4px;
  font-size: 13px;
}

.footer .footer-legal a {
  color: #666;
}

/* Add these transition styles after the existing styles */

/* General transitions */
a,
button,
.btn,
.card,
.card-item,
.nav-link,
.icon-box{
  transition: all 0.3s ease-in-out;
}

/* Icon box transitions */
.icon-box i {
  transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.icon-box:hover i {
  transform: scale(1.2);
}

/* Button transitions */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: rgba(0, 0, 0, 0.1);
  transition: height 0.3s ease;
  z-index: -1;
}

.btn:hover::after {
  height: 100%;
}

/* Carousel transition enhancement */
.carousel-item {
  transition: transform 0.6s ease-in-out;
}

.carousel-item img {
  height: 60vh;      /* 高度为屏幕的一半 */
  object-fit: cover;      /* 保持比例裁剪填满容器 */
  width: 100%;            /* 保证铺满宽度 */
}

/* Table row hover effect */
.table-hover tr {
  transition: background-color 0.3s ease;
}
