/**
 * 首页专用修复样式 - Bootstrap 5 版本
 * 修复顶部公告栏、导航栏和hero区轮播图样式
 */

/* ===================================
   顶部公告栏样式
   =================================== */
.top-announcement-bar {
  background: linear-gradient(90deg, #ff8a00 0%, #e52e71 50%, #667eea 100%);
  color: #fff;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1080;
  border: none;
  display: flex;
  align-items: center;
  height: 40px;
  overflow: visible;
}

.top-announcement-bar .container {
  max-width: 100%;
  width: 100%;
  padding-right: 1rem;
  padding-left: 1rem;
  margin-right: auto;
  margin-left: auto;
  height: 100%;
  display: flex;
  align-items: center;
}

.top-announcement-bar .d-flex {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: 100%;
  gap: 0.5rem;
}

/* Bootstrap响应式断点的最大宽度限制 - 与导航栏container一致 */
@media (min-width: 576px) {
  .top-announcement-bar .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .top-announcement-bar .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .top-announcement-bar .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .top-announcement-bar .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .top-announcement-bar .container {
    max-width: 1320px;
  }
}

/* 修正公告栏内容布局 */
.top-announcement-bar i.fas.fa-bullhorn {
  flex-shrink: 0;
  font-size: 0.9rem;
  min-width: 0.9rem;
  margin-right: 0.6rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
}

.top-announcement-bar .flex-grow-1 {
  flex-grow: 1 !important;
  height: 100%;
  overflow: visible;
  position: relative;
  margin-left: 0;
  margin-right: 0.5rem;
  display: flex;
  align-items: center;
  min-width: 0;
}

.announcement-slider {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  position: static;
  overflow: visible;
  min-width: 0;
}

.announcement-item {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 0;
}

.announcement-link {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  max-width: 100%;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
  height: auto;
}

.announcement-link:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

/* 修复公告栏按钮靠右对齐 */
.announcement-controls {
  display: flex !important;
  gap: 0.3rem;
  flex-shrink: 0;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
  padding-right: 0;
  height: 100%;
}

.announcement-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.75rem;
  margin-left: 0;
  flex-shrink: 0;
  line-height: 1;
}

.announcement-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.announcement-temp-close {
  background: #fd7e14 !important;
  color: white !important;
}

.announcement-day-close {
  background: #dc3545 !important;
  color: white !important;
}



/* ===================================
   导航栏样式修复
   =================================== */
.navbar {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem 1rem;
  z-index: 1070;
  top: 40px;
  position: fixed;
  width: 100%;
  height: auto;
  /* 确保导航栏始终可见 */
  visibility: visible !important;
  opacity: 1 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* 未滚动时导航栏的样式 - 明确透明背景 */
.navbar.navbar-transparent {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0.5rem 1rem !important;
}

.navbar.navbar-transparent .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

.navbar.navbar-transparent .nav-link:hover {
  color: #fff !important;
  opacity: 1;
}

.navbar.navbar-transparent .navbar-brand img {
  filter: none;
}

.navbar.navbar-transparent .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

.navbar.navbar-transparent .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

/* 确保默认状态也是透明的 */
.navbar:not(.scrolled) {
  background: transparent;
}

/* 强制未滚动时的透明样式 */
.navbar.navbar-transparent {
  background: transparent !important;
}


.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
  top: 0; /* 滚动时回到顶部 */
}

.navbar.scrolled .nav-link {
  color: #1e293b !important;
}

.navbar.scrolled .navbar-brand img {
  filter: none;
}

/* Logo 切换样式 */
.navbar-logo-main {
  display: block;
  transition: opacity 0.3s ease;
}

.navbar-logo-scrolled {
  display: none !important;
  transition: opacity 0.3s ease;
}

.navbar.scrolled .navbar-logo-main {
  display: none !important;
}

.navbar.scrolled .navbar-logo-scrolled {
  display: block !important;
}

.navbar-brand {
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.nav-link {
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem !important;
}

/* 下划线指示器 - 移至 ::before 避免与下拉小图标冲突 */
.nav-link::before {
  content: '';
  position: absolute;
  bottom: 5px; /* 向上移动一点，避免贴边 */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 2px;
  transition: width 0.3s ease;
  z-index: 1;
}

.nav-link:hover::before,
.nav-item.active .nav-link::before {
  width: 60%;
}

/* 如果是下拉菜单，通常不需要下划线，或者调整下划线样式避免冲突 */
.dropdown-toggle::before {
  display: none !important;
}

.nav-link:hover {
  color: #667eea !important;
}

/* 电话号码高亮 */
.navbar .nav-link[href^="tel"] {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white !important;
  padding: 0.5rem 1.5rem !important;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.navbar .nav-link[href^="tel"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.navbar .nav-link[href^="tel"]::after {
  display: none;
}

/* 导航栏下拉菜单增强 */
@media (min-width: 992px) {
  .navbar-nav .nav-item.dropdown:hover > .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto;
  }
  
  .navbar-nav .dropdown-menu {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    border: none;
    background: #fff;
  }

  .navbar-nav .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
  }
}

.navbar .dropdown-toggle::after {
  display: inline-block !important;
  margin-left: 6px !important;
  vertical-align: middle !important;
  content: "\f107" !important; /* FontAwesome angle-down */
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-size: 0.85rem !important;
  border: none !important;
  transition: transform 0.3s ease !important;
  opacity: 1 !important;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
  margin-top: -1px !important; /* 微调垂直位置 */
}

.navbar .dropdown-toggle.show::after {
  transform: rotate(180deg) !important;
}

.dropdown-item {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  color: #1e293b;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: rgba(102, 126, 234, 0.1) !important;
  color: #667eea !important;
  padding-left: 1.75rem;
}

.dropdown-item.active {
  background-color: #667eea !important;
  color: #fff !important;
}

/* ===================================
   Hero轮播图样式
   =================================== */
#heroCarousel {
  position: relative;
  z-index: 1050; /* 确保在导航栏下方，公告栏下方 */
}

.carousel-item {
  height: 80vh !important;
  min-height: 650px !important; /* 增加最小高度保证内容完整 */
}

@media (max-width: 768px) {
  .carousel-item {
    height: auto !important;
    min-height: auto !important;
    padding: 120px 0 60px;
  }
}

.el-carousel__container {
  height: 77vh !important;
}

#heroCarousel {
  height: 77vh !important;
}

@media (max-width: 768px) {
  #heroCarousel, .carousel, .el-carousel__container {
    height: auto !important;
    min-height: 85vh !important;
  }
}

.carousel {
  height: 77vh !important;
}

.hero-carousel-full {
  /* 导航栏是固定定位，不需要添加margin-top */
}

body.announcement-closed .hero-carousel-full {
  /* 公告栏关闭time不需要额外空间 */
}

/* Hero动画背景 */
.hero-animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.1) 75%, rgba(255,255,255,0.1)),
              linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.1) 75%, rgba(255,255,255,0.1));
  background-size: 60px 60px;
  background-position: 0 0, 30px 30px;
  animation: heroBackgroundMove 20s linear infinite;
  opacity: 0.3;
}

@keyframes heroBackgroundMove {
  0% { background-position: 0 0, 30px 30px; }
  100% { background-position: 60px 60px, 90px 90px; }
}

.hero-mesh-gradient {
  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%);
  animation: meshPulse 4s ease-in-out infinite;
}

@keyframes meshPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

/* Hero内容样式 */
.hero-content-container,
.hero-content-wrapper {
  z-index: 10;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* 轮播指示器样式 */
.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #667eea;
  background-color: transparent;
  transition: all 0.3s ease;
}

.carousel-indicators .active {
  background-color: #667eea;
  transform: scale(1.2);
}

/* 轮播控制按钮样式 */
.carousel-control-prev,
.carousel-control-next {
  width: auto;
  padding: 1rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: none;
  width: 2rem;
  height: 2rem;
  background-color: rgba(102, 126, 234, 0.8);
  border-radius: 50%;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  background-color: rgba(102, 126, 234, 1);
}

/* Hero信任指标样式 */
.hero-trust-indicators-bottom {
  margin-top: -140px !important; /* 向上移动160px (原本20px) */
  position: relative;
  z-index: 20;
}

@media (max-width: 991px) {
  .hero-trust-indicators-bottom {
    margin-top: 20px !important; /* 移动端不建议负边距，避免重叠 */
    padding-bottom: 30px;
  }
}

.trust-indicator-item {
  text-align: center;
}

.trust-number-bottom {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.trust-label-bottom {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* 浮动徽章样式 - 上中下三行错落有致 */
.hero-badges-staggered {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 1.5rem;
  position: relative;
  height: 100%;
  padding: 1rem 0;
}

.badge-staggered-1 {
  align-self: flex-end;
  margin-right: 10%;
  animation: float-badge-1 5s ease-in-out infinite;
}

.badge-staggered-2 {
  align-self: flex-end;
  margin-right: 35%;
  animation: float-badge-2 6s ease-in-out infinite;
}

.badge-staggered-3 {
  align-self: flex-end;
  margin-right: 5%;
  animation: float-badge-3 7s ease-in-out infinite;
}

@keyframes float-badge-1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-10px, -15px); }
}

@keyframes float-badge-2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -10px); }
}

@keyframes float-badge-3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-5px, -20px); }
}

.floating-badge-staggered {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 0.85rem 1.5rem;
  min-width: 180px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* 红蓝彩色光景背景效果 - 增强版 */
.floating-badge-staggered::before {
  content: '';
  position: absolute;
  top: -20px; left: -20px; right: -20px; bottom: -20px;
  background: radial-gradient(circle at 20% 30%, rgba(0, 123, 255, 0.8), transparent 70%),
              radial-gradient(circle at 80% 70%, rgba(255, 30, 80, 0.8), transparent 70%);
  filter: blur(35px);
  z-index: -1;
  opacity: 0.85;
  border-radius: 40px;
  animation: badgeLightGlow 4s ease-in-out infinite alternate;
}

@keyframes badgeLightGlow {
  0% { opacity: 0.6; transform: scale(0.9) rotate(-3deg); filter: blur(30px); }
  100% { opacity: 1; transform: scale(1.15) rotate(3deg); filter: blur(45px); }
}

.floating-badge-staggered:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.floating-badge-staggered::before {
  display: block; /* 覆盖之前的 display: none */
}

.badge-icon-refined {
  font-size: 1.2rem;
  margin-bottom: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-content-refined-inline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge-label-refined {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 0;
}

.badge-value-refined {
  font-size: 1.1rem;
  font-weight: 700;
}

/* 清理重复定义完成 */
.btn-primary-refined {
  background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 50%, #00d2ff 100%);
  background-size: 200% auto;
  border: none;
  padding: 14px 35px;
  font-weight: 700;
  letter-spacing: 1px;
  color: white;
  border-radius: 10px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(0, 210, 255, 0.5), 0 0 0 0 rgba(0, 210, 255, 0.4);
  position: relative;
  overflow: hidden;
  animation: pulse-glow-cyan 3s infinite, gradient-move 5s ease infinite;
}

@keyframes pulse-glow-cyan {
  0% { box-shadow: 0 8px 25px rgba(0, 210, 255, 0.5), 0 0 0 0 rgba(0, 210, 255, 0.4); }
  70% { box-shadow: 0 8px 25px rgba(0, 210, 255, 0.5), 0 0 0 15px rgba(0, 210, 255, 0); }
  100% { box-shadow: 0 8px 25px rgba(0, 210, 255, 0.5), 0 0 0 0 rgba(0, 210, 255, 0); }
}

@keyframes gradient-move {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 8px 25px rgba(0, 210, 255, 0.5), 0 0 0 0 rgba(0, 210, 255, 0.4); }
  70% { box-shadow: 0 8px 25px rgba(0, 210, 255, 0.5), 0 0 0 15px rgba(0, 210, 255, 0); }
  100% { box-shadow: 0 8px 25px rgba(0, 210, 255, 0.5), 0 0 0 0 rgba(0, 210, 255, 0); }
}

.btn-primary-refined::after {
  content: '';
  position: absolute;
  top: -50%; left: -150%;
  width: 100%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(35deg);
  transition: all 0.6s ease;
  animation: btn-shine 4s infinite;
}

@keyframes btn-shine {
  0% { left: -150%; }
  20% { left: 150%; }
  100% { left: 150%; }
}

.btn-primary-refined:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 210, 255, 0.8);
  color: white;
}

.btn-outline-refined {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: white;
  padding: 14px 35px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  border-radius: 10px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.btn-outline-refined:hover {
  background: white;
  color: #667eea;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* 修复公告栏和导航栏位置 */
body {
  padding-top: 40px; /* 仅为导航栏留出空间，公告栏是固定定位不影响文档流 */
  transition: padding-top 0.3s ease;
}

/* 当公告栏隐藏时调整body的padding */
body.announcement-closed {
  padding-top: 0px; /* 公告栏关闭时，不需要额外空间 */
}

body.announcement-closed .navbar {
  top: 0;
}



/* 调整主内容位置 */
.main-content {
  margin-top: 0; /* 不再需要额外的上边距 */
}

/* 响应式设计 */
@media (max-width: 768px) {
  .stat-number-large {
    font-size: 2.5rem;
  }
  .testimonial-card-modern {
    padding: 30px 20px;
  }
  .testimonial-text {
    font-size: 1.1rem;
  }
  #servicesTab {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start !important;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch;
  }
  #servicesTab .nav-item {
    flex: 0 0 auto;
  }
  .display-3 {
    font-size: 2.5rem !important;
  }
  .display-4 {
    font-size: 2rem !important;
  }
  .testimonial-card .card-body {
    padding: 2rem 1rem !important;
  }
  .hero-trust-indicators-bottom .trust-number-bottom {
    font-size: 1.5rem !important;
  }
  .advantage-card {
    padding: 2rem !important;
  }
}

@media (max-width: 991px) {
  .top-announcement-bar {
    position: fixed;
    top: 0;
  }
  
  .navbar {
    top: 40px;
    padding: 0.5rem;
  }
  
  .navbar.scrolled {
    top: 0px;
  }
  
  body.announcement-closed .navbar {
    top: 0px;
  }
  
  .hero-carousel-full {
    /* 导航栏是固定定位，不需要margin-top */
  }
  
  body.announcement-closed .hero-carousel-full {
    /* 公告栏关闭time */
  }
  
  .main-content {
    /* 不需要margin-top */
  }
}

@media (max-width: 768px) {
  .hero-badges-staggered {
    flex-direction: column;
    gap: 1rem;
  }
  
  .floating-badge-staggered {
    width: 100%;
  }
  
  .navbar {
    top: 40px;
  }
  
  .hero-carousel-full {
    /* 导航栏是固定定位，不需要margin-top */
  }
  
  .main-content {
    /* 不需要margin-top */
  }
}

/* 数字动画样式 */
.animate-number-increase,
.animate-number-decrease {
  display: inline-block;
  font-weight: 700;
}

/* 卡片悬停效果 */
.feature-card-modern {
  transition: all 0.3s ease;
  border: none;
  border-radius: 15px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

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

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  z-index: 1;
  transition: all 0.3s ease;
  opacity: 0;
}

.feature-card-modern:hover .card-overlay {
  opacity: 1;
}

/* 渐变按钮 */
.bg-gradient-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.bg-gradient-secondary {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}

.bg-gradient-success {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
}

.bg-gradient-danger {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%) !important;
}

.bg-gradient-info {
  background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%) !important;
}

/* ===================================
   服务展示区域重构样式
   =================================== */
.services-section {
  padding: 100px 0;
  background: #f8f9fa;
  position: relative;
}

#servicesTab {
  border-bottom: none;
  gap: 15px;
}

#servicesTab .nav-item .nav-link {
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  color: #64748b;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

#servicesTab .nav-item .nav-link:hover {
  transform: translateY(-2px);
  color: #667eea;
}

#servicesTab .nav-item .nav-link.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.service-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  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, #667eea 0%, #764ba2 100%);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 50px rgba(102, 126, 234, 0.15);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover .card-title,
.service-card:hover .card-text,
.service-card:hover .list-unstyled li,
.service-card:hover .list-unstyled li i {
  color: #fff !important;
}

.service-card:hover .service-icon {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1) rotate(10deg);
}

.service-card:hover .service-icon i {
  color: #fff !important;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: #f1f5f9;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  transition: all 0.4s ease;
}

.service-icon i {
  font-size: 2.5rem;
  transition: all 0.4s ease;
}

.service-card .card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #1e293b;
}

.service-card .card-text {
  color: #64748b;
  line-height: 1.8;
  margin-bottom: 25px;
}

.service-card .list-unstyled li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  color: #475569;
  font-weight: 500;
}

.service-card .list-unstyled li i {
  width: 24px;
  height: 24px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  margin-right: 12px;
  transition: all 0.4s ease;
}

.service-card .btn-outline-custom {
  border: 2px solid #667eea;
  color: #667eea;
  border-radius: 50px;
  padding: 10px 25px;
  font-weight: 600;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.service-card:hover .btn-outline-custom {
  border-color: #fff;
  color: #fff;
  background: transparent;
}

.service-card:hover .btn-outline-custom:hover {
  background: #fff;
  color: #667eea;
}

.card-overlay {
  background: linear-gradient(45deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

/* 滚动动画类 */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* GPU加速优化 */
.gpu-accelerated {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* 浮动CTA样式 */
.floating-cta {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1050;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 10px;
  opacity: 0;
  transition: all 0.4s ease;
  display: none;
}

.floating-cta.visible {
  display: block;
  opacity: 1;
}

.floating-cta-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  color: white;
  margin-left: 15px;
}

/* 修复侧边工具栏位置 */
#sideToolbar {
  top: 120px; /* 在公告栏和导航栏下方 */
}

/* 补充hero区域缺失的样式 */
.hero-content-refined-left {
  padding-right: 2rem;
}

.hero-badge-refined {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-cta-refined {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* 补充AI设计相关样式 */
.hero-badge-pink {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.text-accent-pink {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-tag-pink {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 0.75rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.service-tag-pink:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

.btn-hero-gradient-orange {
  background: linear-gradient(135deg, #ff8a00 0%, #ffc107 50%, #ff4b2b 100%);
  background-size: 200% auto;
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(255, 138, 0, 0.4);
  animation: gradient-move 5s ease infinite;
  transition: all 0.4s ease;
  padding: 14px 35px;
}

.btn-hero-gradient-orange:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 35px rgba(255, 75, 43, 0.6);
  color: white;
}

.btn-hero-accent-pink {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  border: none;
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* 第二页按钮橙黄红渐变 */
.btn-hero-gradient-orange {
  background: linear-gradient(135deg, #ff8a00 0%, #ffc107 50%, #ff4b2b 100%);
  background-size: 200% auto;
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(255, 138, 0, 0.4);
  animation: gradient-move 5s ease infinite;
  transition: all 0.4s ease;
}

.btn-hero-gradient-orange:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 35px rgba(255, 75, 43, 0.6);
  color: white;
}

.btn-hero-accent-pink:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(245, 87, 108, 0.4);
}

/* 补充400电话相关样式 */
.hero-badge-cyan {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.text-accent-cyan {
  background: linear-gradient(135deg, #ffffff 0%, #00f2fe 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(0, 242, 254, 0.8), 0 0 40px rgba(0, 242, 254, 0.4);
  font-weight: 900;
  letter-spacing: 1px;
}

.feature-highlight-cyan {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.feature-highlight-cyan:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-hero-accent-cyan {
  background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 50%, #00d2ff 100%);
  background-size: 200% auto;
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 700;
  padding: 14px 35px;
  transition: all 0.4s ease;
  animation: gradient-move 5s ease infinite;
  box-shadow: 0 8px 25px rgba(0, 210, 254, 0.4);
}

.btn-hero-accent-cyan:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 242, 254, 0.6);
  color: white;
}

/* AI设计视觉元素 - 新版优化 */
.ai-design-visual-container {
  position: relative;
  height: 400px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

/* 背景脉冲圆环 */
.ai-connection-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.ring-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}

.ring-1 {
  width: 200px;
  height: 200px;
  animation: ringPulse 4s infinite ease-in-out;
}

.ring-2 {
  width: 350px;
  height: 350px;
  animation: ringPulse 4s infinite ease-in-out 1s;
  border-style: dashed;
}

.ring-3 {
  width: 500px;
  height: 500px;
  animation: ringPulse 4s infinite ease-in-out 2s;
  opacity: 0.5;
}

@keyframes ringPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.6; }
}

/* 核心 AI Brain */
.ai-core-wrapper {
  position: relative;
  z-index: 10;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: coreFloat 6s ease-in-out infinite;
}

.ai-core-icon {
  font-size: 5rem;
  color: #fff;
  z-index: 2;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
  animation: coreGlow 3s infinite alternate;
}

.ai-core-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(240, 147, 251, 0.4) 40%, transparent 70%);
  filter: blur(20px);
  z-index: 1;
  animation: corePulse 3s infinite;
}

.ai-core-scanner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border-top: 2px solid rgba(255, 255, 255, 0.9);
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
  border-left: 2px solid transparent;
  border-right: 2px solid transparent;
  z-index: 3;
  animation: scanRotate 4s linear infinite;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

@keyframes coreFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes coreGlow {
  0% { color: #fff; filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6)); }
  100% { color: #ffe6fa; filter: drop-shadow(0 0 30px rgba(255, 154, 158, 0.9)); }
}

@keyframes corePulse {
  0%, 100% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

@keyframes scanRotate {
  0% { transform: rotate(0deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1.1); }
}

/* 浮动卡片通用样式 */
.ai-floating-card {
  position: absolute;
  z-index: 5;
  transition: all 0.3s ease;
}

.floating-card-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px;
  width: 160px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.ai-floating-card:hover .floating-card-glass {
  transform: translateY(-5px) scale(1.05);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.card-icon-box {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* 各个卡片位置与动画 */
.card-top-right {
  top: 10%;
  right: 10%;
  animation: floatCard1 8s ease-in-out infinite;
}

.card-bottom-right {
  bottom: 15%;
  right: 15%;
  animation: floatCard2 7s ease-in-out infinite 1s;
}

.card-left {
  top: 40%;
  left: 5%;
  animation: floatCard3 9s ease-in-out infinite 0.5s;
}

@keyframes floatCard1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-10px, 15px); }
}

@keyframes floatCard2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -10px); }
}

@keyframes floatCard3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5px, 20px); }
}

/* 卡片内部元素微调 */
.color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid white;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 10px rgba(255, 255, 255, 1);
  animation: scanImage 3s linear infinite;
}

@keyframes scanImage {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* 标题重点标记颜色 */
.text-mark-yellow {
  color: #ffeb3b !important;
  text-shadow: 0 0 15px rgba(255, 235, 59, 0.6);
  position: relative;
  display: inline-block;
  padding: 0 5px;
}

.text-mark-yellow::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 12px;
  background: rgba(255, 235, 59, 0.25);
  z-index: -1;
  border-radius: 4px;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* 通信视觉元素 */
.communication-visual {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-icon-large {
  font-size: 9rem; /* 进一步增大图标 */
  color: white;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.9), 0 0 80px rgba(0, 242, 254, 0.6);
  animation: phonePulse 2s ease-in-out infinite, phoneGlow 4s ease-in-out infinite alternate;
  z-index: 10;
}

@keyframes phoneGlow {
  0% { filter: drop-shadow(0 0 20px rgba(0, 242, 254, 0.4)); }
  100% { filter: drop-shadow(0 0 50px rgba(0, 242, 254, 0.8)) drop-shadow(0 0 100px rgba(255, 255, 255, 0.3)); }
}

@keyframes phonePulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(-5deg); }
  75% { transform: scale(1.1) rotate(5deg); }
}

.wave-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.wave-ring.wave-1 {
  width: 120px;
  height: 120px;
  animation-delay: 0s;
}

.wave-ring.wave-2 {
  width: 160px;
  height: 160px;
  animation-delay: 0.4s;
}

.wave-ring.wave-3 {
  width: 200px;
  height: 200px;
  animation-delay: 0.8s;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0;
  }
}

/* 数字滚动动画 */
/* 移除冗余的CSS计数动画，由JS处理 */
.trust-number-bottom {
  /* animation: countUp 2s ease-out forwards; */
}

@keyframes countUp {
  from {
    counter-reset: count 0;
  }
  to {
    counter-reset: count attr(data-count);
  }
}

/* 修复三大核心优势部分的动态效果 */
.feature-card-modern {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card-modern::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: 0.5s;
  z-index: 1;
}

.feature-card-modern:hover::before {
  left: 100%;
}

.feature-card-modern::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  transition: all 0.4s ease;
  z-index: 1;
}

.feature-card-modern:hover::after {
  transform: rotate(30deg);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
}

/* 卡片内部元素层级调整 */
.feature-card-modern .card-body {
  position: relative;
  z-index: 2;
}

/* 卡片悬停时的背景变化 */
.feature-card-modern:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
}

/* 特殊卡片高亮效果 */
.feature-card-modern.featured {
  border: 2px solid transparent;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
}

.feature-card-modern.featured:hover {
  border: 2px solid #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

/* 右侧多功能工具栏样式 - 美化版 */
.sidebar-toolbar {
  position: fixed;
  top: 290px !important; /* 在公告栏和导航栏下方，下移170px */
  right: 0;
  z-index: 1060; /* 确保在其他元素之上 */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 60px;
  transform: translateX(0);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px 0 0 12px;
  box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  overflow: visible;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar-toolbar.collapsed {
  width: 40px; /* 与按钮宽度一致 */
  height: auto !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.sidebar-toolbar.collapsed .toolbar-items {
  display: none;
}

.sidebar-toolbar.collapsed .toolbar-toggle {
  margin-bottom: 0 !important;
  border-radius: 8px 0 0 8px !important; /* 折叠时靠右对齐 */
  width: 40px;
  height: 50px;
}

.sidebar-toolbar.collapsed .toolbar-toggle::after {
  content: '';
}

.toolbar-toggle {
  position: relative;
  width: 48px;
  height: 40px;
  border: none;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1061;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.toolbar-toggle:hover {
  background: linear-gradient(135deg, #764ba2, #667eea);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.toolbar-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  height: 100%;
  width: 100%;
}

.toolbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 10px 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  color: #333;
  position: relative;
  overflow: hidden;
  margin: 0 6px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  min-width: 48px;
}

.toolbar-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s;
  z-index: 1;
}

.toolbar-item:hover::before {
  left: 100%;
}

.toolbar-item:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.toolbar-item:hover .toolbar-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.toolbar-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  margin-right: 0;
  margin-bottom: 4px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toolbar-label {
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  color: #333;
  text-align: center;
  line-height: 1.2;
}

.scroll-top-btn {
  opacity: 0.5;
  pointer-events: none;
  transition: all 0.3s ease;
}

.scroll-top-btn:hover {
  opacity: 1;
  pointer-events: auto;
}

/* 响应式设计 - 在小屏幕上隐藏工具栏 */
@media (max-width: 991px) {
  .sidebar-toolbar {
    display: none;
  }
}

/* 平板设备上的响应式设计 */
@media (max-width: 1199px) and (min-width: 992px) {
  .sidebar-toolbar {
    width: 60px;
  }
  
  .sidebar-toolbar.collapsed {
    width: 40px;
  }
  
  .toolbar-item {
    padding: 10px 6px;
    margin: 0 6px;
  }
  
  .toolbar-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .toolbar-label {
    font-size: 10px;
  }
}

/* 在导航栏滚动后调整工具栏位置 */
.navbar.scrolled ~ .sidebar-toolbar {
  top: 250px !important; /* 导航栏滚动后的位置，随导航栏上移40px */
}

/* 修复侧边工具栏位置 - 原有样式保持 */
#sideToolbar {
  top: 120px; /* 在公告栏和导航栏下方 */
}

/* 工具栏项目悬停时的背景变化 */
.toolbar-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  transform: scaleY(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: top;
  z-index: 2;
}

.toolbar-item:hover::after {
  transform: scaleY(1);
  transform-origin: top;
}

/* 工具栏标题分隔线 */
.toolbar-section-title {
  padding: 12px 24px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #667eea;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.toolbar-section-title::before {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #667eea, transparent);
  margin-right: 12px;
}

/* 第三屏左侧优化样式 */
.feature-box-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.feature-box-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.icon-box-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.icon-box-circle.sm {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

.opacity-90 {
  opacity: 0.9 !important;
}

.opacity-75 {
  opacity: 0.75 !important;
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

.hero-cta-group {
  position: relative;
  z-index: 2;
}

/* 核心优势重构样式 */
.advantage-card {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.shadow-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

.scale-hover {
  transform: scale(1.02);
}

.scale-hover:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 50px rgba(102, 126, 234, 0.3) !important;
}

.card-bg-number {
  position: absolute;
  top: -10px;
  right: 10px;
  font-size: 8rem;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.03);
  line-height: 1;
  pointer-events: none;
  font-family: var(--bs-font-monospace);
}

.popular-tag {
  position: absolute;
  top: 20px;
  right: -30px;
  background: #ff4b2b;
  color: white;
  padding: 5px 30px;
  transform: rotate(45deg);
  font-weight: bold;
  font-size: 0.8rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.text-gradient-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-blue-subtle { background-color: rgba(13, 110, 253, 0.1); }
.bg-green-subtle { background-color: rgba(25, 135, 84, 0.1); }
.bg-primary-subtle { background-color: rgba(13, 110, 253, 0.1); }
.bg-success-subtle { background-color: rgba(25, 135, 84, 0.1); }
.bg-info-subtle { background-color: rgba(13, 202, 240, 0.1); }

.advantage-list li {
  margin-bottom: 0.75rem;
}

.fs-7 {
  font-size: 0.75rem;
}

.mw-800 {
  max-width: 800px;
}

/* 第三屏重新构图优化 */
.feature-pill-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.feature-pill-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* 右侧增强视觉区 */
.communication-visual-enhanced {
  position: relative;
  perspective: 1000px;
}

.phone-center-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: phoneFloat 6s ease-in-out infinite;
}

.phone-icon-main {
  font-size: 4.5rem;
  color: #fff;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
  z-index: 2;
  animation: phoneGlowPulse 4s infinite;
}

.phone-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(79, 172, 254, 0.4) 50%, transparent 70%);
  filter: blur(25px);
  z-index: 1;
  animation: glowExpand 3s infinite alternate;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes phoneGlowPulse {
  0% { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6)); }
  50% { filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.9)); }
  100% { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6)); }
}

@keyframes glowExpand {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.2); opacity: 0.9; }
}

/* 增强版波纹 */
.wave-rings-enhanced {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.ring-e {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.r1 { width: 180px; height: 180px; animation: ringPulseEnhanced 3s infinite; }
.r2 { width: 300px; height: 300px; animation: ringPulseEnhanced 3s infinite 1s; border: 1px dashed rgba(255, 255, 255, 0.2); }
.r3 { width: 450px; height: 450px; animation: ringPulseEnhanced 3s infinite 2s; opacity: 0.5; }

@keyframes ringPulseEnhanced {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0; }
}

/* 浮动统计卡片 */
.comm-floating-card {
  position: absolute;
  z-index: 15;
  transition: all 0.3s ease;
}

.comm-floating-card:hover {
  transform: scale(1.05);
  z-index: 20;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  min-width: 160px;
}

.stat-icon-box {
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
}

/* 卡片定位 */
.card-stat-increase {
  top: 15%;
  right: 10%;
  animation: floatStat1 7s ease-in-out infinite;
}

.card-stat-missed {
  bottom: 20%;
  left: 5%;
  animation: floatStat2 8s ease-in-out infinite 1s;
}

.card-stat-brand {
  bottom: 10%;
  right: 15%;
  animation: floatStat3 9s ease-in-out infinite 0.5s;
}

@keyframes floatStat1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-10px, 15px); }
}

@keyframes floatStat2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -10px); }
}

@keyframes floatStat3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-5px, -15px); }
}

/* ===================================
   统计数据区域美化
   =================================== */
.stats-section-refined {
  background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.stats-section-refined {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.stats-section-refined .lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  margin: auto;
  width: 90vw;
}

.stats-section-refined .lines .line {
  position: absolute;
  width: 1px;
  height: 100%;
  top: 0;
  left: 50%;
  background: rgba(200, 200, 200, 0.1);
  overflow: hidden;
}

.stats-section-refined .lines .line::after {
  content: "";
  display: block;
  position: absolute;
  height: 15vh;
  width: 100%;
  top: -50%;
  left: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #667eea 75%, #764ba2 100%);
  animation: drop 7s 0s infinite;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
}

.stats-section-refined .lines .line:nth-child(1) {
  margin-left: -25%;
}

.stats-section-refined .lines .line:nth-child(1)::after {
  animation-delay: 2s;
}

.stats-section-refined .lines .line:nth-child(3) {
  margin-left: 25%;
}

.stats-section-refined .lines .line:nth-child(3)::after {
  animation-delay: 2.5s;
}

@keyframes drop {
  0% {
    top: -50%;
  }
  100% {
    top: 110%;
  }
}

.stats-section-refined::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
}

.stat-item-modern {
  text-align: center;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.stat-item-modern:hover {
  transform: translateY(-10px);
}

.stat-icon-glass {
  width: 70px;
  height: 70px;
  background: white;
  backdrop-filter: blur(10px);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.75rem;
  color: #667eea;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number-large {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  text-shadow: none;
  margin-bottom: 5px;
}

.stat-label-modern {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===================================
   客户评价区域美化
   =================================== */
.testimonials-section-refined {
  padding: 100px 0;
  background: #fff;
}

.testimonial-card-modern {
  background: #f8fafc;
  border-radius: 30px;
  padding: 50px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.quote-mark {
  position: absolute;
  top: 40px;
  left: 40px;
  font-size: 4rem;
  color: rgba(102, 126, 234, 0.1);
  line-height: 1;
}

.testimonial-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #334155;
  font-style: italic;
  margin-bottom: 35px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.author-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.author-info h5 {
  margin: 0;
  font-weight: 700;
  color: #1e293b;
}

.author-info p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

/* ===================================
   资质证书区域
   =================================== */
.certificate-item {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  border: 1px solid #f1f5f9;
}

.certificate-item:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

/* ===================================
   合作流程美化
   =================================== */
.process-section-refined {
  padding: 100px 0;
  background: #f8fafc;
}

.process-step-card {
  text-align: center;
  position: relative;
}

.step-number-refined {
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #667eea;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.process-step-card:hover .step-number-refined {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-color: transparent;
  transform: rotateY(360deg);
}

.step-title-refined {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}

/* ===================================
   新闻资讯美化
   =================================== */
.news-card-refined {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  height: 100%;
}

.news-card-refined:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.news-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.news-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s ease;
}

.news-card-refined:hover .news-img-wrapper img {
  transform: scale(1.1);
}

.news-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.news-content-refined {
  padding: 25px;
}

.news-title-refined {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-title-refined a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-title-refined a:hover {
  color: #667eea;
}

.news-meta-refined {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #94a3b8;
  font-size: 0.85rem;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

/* ===================================
   合作伙伴美化
   =================================== */
.partner-logo-refined {
  filter: grayscale(1);
  opacity: 0.6;
  transition: all 0.4s ease;
  max-height: 50px;
  width: auto;
}

.partner-logo-refined:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.1);
}

/* 响应式设计补充 */
@media (max-width: 768px) {
  .stats-section-refined {
    padding: 60px 0;
  }
  .stat-number-large {
    font-size: 2.5rem;
  }
  .testimonial-card-modern {
    padding: 30px 20px;
  }
  .testimonial-text {
    font-size: 1.1rem;
  }
}

/* ===================================
   SVG 分割线样式
   =================================== */
.section-divider {
  position: absolute;
  width: 100%;
  left: 0;
  line-height: 0;
  z-index: 2;
}

.divider-top { top: -1px; }
.divider-bottom { bottom: -1px; }

.divider-fill-dark { fill: #1e293b; }
.divider-fill-light { fill: #f8fafc; }
.divider-fill-white { fill: #ffffff; }

/* ===================================
   快速留单区 (CTA Banner)
   =================================== */
.quick-cta-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 30px;
  padding: 60px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
}

.quick-cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-title {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.cta-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* ===================================
   证书跑马灯 (Marquee)
   =================================== */
.marquee-container {
  overflow: hidden;
  padding: 20px 0;
  position: relative;
  width: 100%;
}

.marquee-content {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

.marquee-item {
  flex: 0 0 250px;
  margin: 0 15px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===================================
   新闻列表微卡片化
   =================================== */
.news-list-item-refined {
  background: #fff;
  border-radius: 15px !important;
  margin-bottom: 15px;
  border: 1px solid #f1f5f9 !important;
  padding: 15px !important;
  transition: all 0.3s ease;
}

.news-list-item-refined:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  border-color: #667eea !important;
}

/* ===================================
   呼吸灯与入场动画
   =================================== */
@keyframes iconBreath {
  0%, 100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4); }
  50% { box-shadow: 0 0 20px 10px rgba(102, 126, 234, 0); }
}

.stat-icon-glass {
  animation: iconBreath 3s infinite;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Timeline Section */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: #667eea;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: white;
  border: 4px solid #667eea;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item:nth-child(odd)::after {
  right: -12.5px;
}

.timeline-item:nth-child(even)::after {
  left: -12.5px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: white;
  position: relative;
  border-radius: 6px;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #667eea;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(to right, #667eea, #764ba2);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.timeline-item {
  animation: fadeIn 1s ease-in-out;
}
