/* 额外样式 - 增强网站视觉效果 */

/* 滚动动效增强 */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* 公司简介滚动效果增强 */
.auto-scroll-container {
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
}

.auto-scroll-wrapper {
  transition: transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.auto-scroll-item {
  padding: 25px;
  background: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  border-left: 3px solid var(--primary-color);
}

.auto-scroll-item h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 10px;
}

.auto-scroll-item h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

/* 服务卡片悬停效果增强 */
.service-card {
  transition: all 0.4s cubic-bezier(0.5, 0, 0, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(228, 30, 38, 0.8) 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 15px 30px rgba(228, 30, 38, 0.2);
}

.service-card:hover:before {
  opacity: 0.05;
}

.service-card:hover h3 {
  color: var(--primary-color);
}

/* 数字计数器增强效果 */
.counter-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #000000 100%);
  position: relative;
  overflow: hidden;
}

.counter-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/pattern.png');
  opacity: 0.05;
}

.counter-item {
  position: relative;
  z-index: 2;
  padding: 30px 15px;
  transition: transform 0.3s ease;
}

.counter-item:hover {
  transform: translateY(-5px);
}

.counter {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--accent-color), #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
  display: inline-block;
}

.counter-title {
  font-size: 1.1rem;
  color: #ffffff;
  position: relative;
  padding-bottom: 10px;
}

.counter-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

/* 项目案例悬停效果增强 */
.portfolio-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-item .img-placeholder {
  transition: transform 0.6s cubic-bezier(0.5, 0, 0, 1);
}

.portfolio-overlay {
  background: linear-gradient(135deg, rgba(228, 30, 38, 0.9) 0%, rgba(228, 30, 38, 0.7) 100%);
  transition: all 0.4s cubic-bezier(0.5, 0, 0, 1);
}

.portfolio-overlay h3 {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.5, 0, 0, 1) 0.1s;
}

.portfolio-overlay a {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.5, 0, 0, 1) 0.2s;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay a {
  transform: translateY(0);
  opacity: 1;
}

/* 视频播放按钮动画 */
.video-container .fas {
  font-size: 64px;
  color: var(--primary-color);
  transition: all 0.4s cubic-bezier(0.5, 0, 0, 1);
  animation: pulse 2s infinite;
  cursor: pointer;
}

/* 视频模态框样式 */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.video-modal-content {
  position: relative;
  width: 80%;
  max-width: 800px;
}

.close-video {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

.video-modal video {
  width: 100%;
  border-radius: 4px;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(228, 30, 38, 0.7);
  }
  
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 15px rgba(228, 30, 38, 0);
  }
  
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(228, 30, 38, 0);
  }
}

/* 新闻卡片悬停效果 */
.news-card {
  transition: all 0.4s cubic-bezier(0.5, 0, 0, 1);
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.news-card .img-placeholder {
  overflow: hidden;
}

.news-card .img-placeholder img {
  transition: transform 0.6s cubic-bezier(0.5, 0, 0, 1);
}

.news-card:hover .img-placeholder img {
  transform: scale(1.1);
}

.news-card-date {
  display: inline-block;
  padding: 5px 10px;
  background-color: var(--primary-color);
  color: white;
  font-size: 0.8rem;
  border-radius: 3px;
  margin-bottom: 15px;
}

.news-card .read-more {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.news-card .read-more:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.news-card:hover .read-more:after {
  width: 100%;
}

/* 按钮悬停效果增强 */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.5, 0, 0, 1);
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s cubic-bezier(0.5, 0, 0, 1);
  z-index: -1;
}

.btn:hover:before {
  left: 100%;
}

.btn:hover {
  box-shadow: 0 5px 15px rgba(228, 30, 38, 0.3);
  transform: translateY(-2px);
}

/* 页面滚动指示器 */
.scroll-btn {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  animation: bounce 2s infinite;
}

.scroll-btn .i {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  position: relative;
}

.scroll-btn .i:before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 6px;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* 3D卡片效果 */
.service-card.card-3d {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.service-card.card-3d:hover {
  transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
}

/* 波浪动画效果 */
.wave-animation {
  position: relative;
  overflow: hidden;
}

.wave-animation:before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--primary-color) 100%);
  animation: wave 10s linear infinite;
}

.wave-animation .overlay-text {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  text-align: center;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px;
}

@keyframes wave {
  0% {
    background-position: 0;
  }
  100% {
    background-position: 1000px;
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .counter {
    font-size: 2.5rem;
  }
  
  .auto-scroll-item {
    padding: 15px;
  }
  
  .video-container .fas {
    font-size: 48px;
  }
}