/* Existing custom CSS content would be here */

/* Portfolio Thumbnail Hover Effects */
#portfolio .portfolio-item {
  transition: transform 0.3s ease-in-out;
  position: relative;
 
}

#portfolio .portfolio-item:hover {
  transform: scale(1.05) !important; /* Add !important to override any conflicting styles */
  z-index: 10;
}

#portfolio .portfolio-item.shrink {
  transform: scale(0.95) !important; /* Add !important to ensure this takes effect */
}

/* Loading Spinner */
.video-loading-spinner {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 20; /* Ensure spinner is above other elements */
	 pointer-events: none; /* Ensure spinner doesn't interfere with clicks */
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Video Container */
.portfolio-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  background-color: transparent; /* Changed from black to transparent */
  z-index: 5; /* Ensure video container is above the image but below spinner */
  
  border-radius: inherit; /* Inherit border-radius from parent */
	pointer-events: none; /* Ensure video container doesn't interfere with clicks */
	
}

.portfolio-video-container.visible {
  opacity: 1;
	
}

.portfolio-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* Ensure proper display */
  border-radius: inherit; /* Inherit border-radius from parent */
	 pointer-events: none; /* Ensure video doesn't interfere with clicks */
	box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.2);
}


/* Ensure any image inside portfolio item has the same border-radius */
#portfolio .portfolio-item img,
#portfolio .portfolio-item .img-fluid,
#portfolio .portfolio-item .portfolio-caption {
  border-radius: inherit;
}

.services-stack__inner {
	
	-webkit-backdrop-filter: blur(0.5px)!important;
    backdrop-filter: blur(0.5px)!important;
    filter: drop-shadow(0 2rem 3rem rgba(0, 0, 0, 0.05))!important;
    border: 0.2rem solid rgba(255, 255, 255, 0.5)!important;
	background-color: transparent;
}

.services-stack__descr,.services-stack__title {
	
	background-color: var(--base);
}

.cards__card {
	    box-shadow: 1rem 1rem 2rem var(--base-shade), -1rem -1rem 2rem var(--base-tint)!important;
	border: none!important;
}

/* 在文件末尾添加或修改以下样式 */
.about-showcase-container {
  width: 100%;
  height: 600px;
  position: relative;
  overflow: hidden;
  border-radius: var(--_radius);
  background-color: #0f0f0f;
  cursor: pointer;
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-showcase {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

.about-showcase__content {
  flex: 1;
  padding: 4rem;
  color: var(--t-opp-bright);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  background-color: var(--t-medium);
}

.about-showcase__media {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 0 24px 24px 0;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0 24px 24px 0;
  overflow: hidden;
}

.showcase-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.showcase-video.active {
  opacity: 1;
}

.progress-indicator {
  position: absolute;
  top: 2rem;
  left: 3rem;
  display: flex;
  align-items: center;
}

.circular-progress {
  width: 36px;
  height: 36px;
}

.circle-bg {
  fill: none;
  stroke: var(--t-opp-bright);
  stroke-width: 2.5;
	opacity: 0.3;
}

.circle {
  fill: none;
  stroke: var(--t-opp-bright);
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
  stroke-dasharray: 100, 100;
  stroke-dashoffset: 0;
}

.next-label {
  margin-left: 1rem;
  opacity: 0.7;
  
}

.content-slider {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.content-slide {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.content-slide.active {
  opacity: 1;
  position: relative;
  transform: translateY(0);
  pointer-events: auto;
}

.slide-title {
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--t-opp-bright);
}

.slide-description {
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.8;
	color: var(--t-opp-bright);
}

.slide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.5rem 1.2rem;
	color:var(--t-bright);
  background-color: var(--t-opp-bright);
  border-radius: 2rem;
	font-weight: 700;
}

@media only screen and (max-width: 992px) {
  .about-showcase {
    flex-direction: column;
  }

  .about-showcase__content {
    padding: 2rem;
    order: 2;
  }

  .about-showcase__media {
    height: 300px;
    order: 1;
    border-radius: 24px 24px 0 0;
  }

  .video-container {
    border-radius: 24px 24px 0 0;
  }

  .progress-indicator {
    top: 1rem;
    left: 1rem;
  }

  .slide-title {
  }
}

@media only screen and (min-width: 1400px) {
  .about-showcase-container {
    height: 700px;
  }

  .about-showcase__content {
    padding: 4rem;
  }

  .slide-title {
  }

  .slide-description {
  }
}

.btn-default {
	box-shadow: 1rem 1rem 2rem var(--base-shade), -1rem -1rem 2rem var(--base-tint)!important;
	border: none!important;
}

.hover-jumao:hover {
	color:var(--t-opp-bright);
	letter-spacing: 1px;
	background-color: #FCA61D!important;
  box-shadow: #FCA61D 0px 7px 29px 0px!important;
}

.hover-jumao:active {
	color:var(--t-opp-bright);
	letter-spacing: 1px;
  box-shadow: #FCA61D 0px 7px 29px 0px!important;
  transform: translateY(10px);
  transition: 100ms;
}

.color-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  font-size: 2.5rem;
  border: none;
  cursor: pointer;
  padding: 0;
	
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-switcher:hover {
  transform: scale(1.1); /* 放大 10% */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* 轻微阴影 */
  border-radius: 50%; /* 如果你喜欢圆角按钮 */
}


/* 导航栏居中显示 - 针对特定HTML结构的修复 */
header#header .header__navigation {
  width: 100% !important;
}

header#header .header__navigation nav#menu.menu {
  width: 100% !important;
}

header#header .header__navigation nav#menu.menu ul.menu__list {
  width: 100% !important;
  justify-content: center !important;
}

/* 确保在移动设备上也能正确居中 */
@media only screen and (max-width: 992px) {
  header#header .header__navigation nav#menu.menu ul.menu__list {
    justify-content: center !important;
  }
}

/* 导航栏居中显示 - 更精确的选择器和强制覆盖 */
nav#menu.menu {
  width: 100% !important;
}

nav#menu.menu > ul {
  width: auto !important;
  margin: 0 auto !important;
  float: none !important;
  text-align: center !important;
  display: inline-flex !important;
  justify-content: center !important;
}

/* 如果菜单被包裹在额外的div中 */
nav#menu.menu > div {
  width: 100% !important;
  text-align: center !important;
}

nav#menu.menu > div > ul {
  width: auto !important;
  margin: 0 auto !important;
  float: none !important;
  text-align: center !important;
  display: inline-flex !important;
  justify-content: center !important;
}

/* 确保header__navigation容器不限制内部元素 */
.header__navigation.d-flex.justify-content-center {
  width: 100% !important;
}

/* 修复可能的Bootstrap覆盖问题 */
@media (min-width: 992px) {
  .header__navigation.d-flex.justify-content-center {
    justify-content: center !important;
  }

  nav#menu.menu,
  nav#menu.menu > ul,
  nav#menu.menu > div,
  nav#menu.menu > div > ul {
    justify-content: center !important;
  }
}

/* 确保导航栏内部元素居中 */

/* 如果菜单被包裹在额外的div中 */

/* 确保header__navigation容器不限制内部元素 */

/* 修复可能的Bootstrap覆盖问题 */
/* 链接箭头样式 */
.link-arrow {
  display: inline-block;
  vertical-align: middle;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 为已有slide-up类的元素添加兼容性 */
.slide-up {
  animation: 0.4s ease-in-out 0s 1 both slideUp;
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Intro背景图片样式 */
.intro-section {
  position: relative;
  z-index: 1;
}

.intro-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.intro-bg-image img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 600px;
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* 小屏幕和竖屏设备上的样式 */
@media only screen and (max-width: 992px), (orientation: portrait) {
  .intro-bg-image img {
    width: 100%;
    max-width: 100%;
  }
}

/* Contact视频背景样式 */
.contact-video-container {
  position: relative;
  width: 100%;
 
  height: 600px; /* 固定高度而不是使用padding-bottom */
  border-radius: var(--_radius);
  background-color: #000;
	    cursor: pointer;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-background-video {
  position: absolute;
	  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 确保视频覆盖整个容器 */
	border-radius: var(--_radius);
}

/* 联系信息覆盖层样式 */
.contact-info-overlay {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  max-width: 400px;
      background-color: rgba(var(--base-rgb), 0.7) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: var(--_radius);
  color: #fff;
  z-index: 5; /* 确保在视频上方 */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.contact-info-title {

  margin-bottom: 1rem;

}

.contact-info-content {
  font-size: 1rem;
  line-height: 1.6;
}

.contact-info-content p {
  margin-bottom: 0.5rem;
}


/* 响应式调整 */
@media only screen and (max-width: 768px) {
	  .contact-video-container {
    height: 400px; /* 在小屏幕上减小高度 */
  }

  .contact-info-overlay {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    padding: 1.5rem;
  }

  .contact-info-title {
   
  }

  .contact-info-content {
    
  }
}

/* 确保联系信息覆盖层在所有设备上都可见 */
#contact .contact-info-overlay {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Hero部分的样式 */

/* 弧形标题容器 */
.arc-title-container {
  width: 100%;
  text-align: center;
  margin-top: 50px; /* 与导航栏的距离 */
  margin-bottom: 30px;
  position: relative;
}

/* 标题样式 */
.arc-title-container .headline__title {
  font-weight: 500;
  position: relative;
  display: inline-block;
  padding: 10px 20px;
 
}

/* 打字机效果文字容器 */
.typing-text-container {
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2; /* 确保在图片上方 */
  bottom: -350px; /* 将文字下移到图片下方 */
}

/* 响应式调整 */
@media only screen and (max-width: 768px) {
  .arc-title-container .headline__title {
    font-size: 1.5rem;
  }

  .typing-text-container {
    bottom: -250px; /* 在小屏幕上调整位置 */
  }
}

@media only screen and (min-width: 1200px) {
  .typing-text-container {
    bottom: -400px; /* 在大屏幕上调整位置 */
  }
}
