/* 自定义样式补充 */

/* 滚动导航条样式 */
nav.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* 全局动画效果 */
.transition {
  transition: all 0.3s ease;
}

/* 按钮悬停特效 */
.bg-blue-600:hover {
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.25);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* 卡片悬停效果 */
.shadow-lg:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* 图片渐变遮罩 */
.image-overlay {
  position: relative;
  overflow: hidden;
}

.image-overlay::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
}

.image-overlay img {
  transition: transform 0.5s ease;
}

.image-overlay:hover img {
  transform: scale(1.05);
}

/* 滚动到顶部按钮 */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background-color: rgba(37, 99, 235, 0.8);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background-color: rgba(37, 99, 235, 1);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* 动画效果类 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }
}

/* 表单样式增强 */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* 功能图标悬停效果 */
.bg-blue-100:hover {
  background-color: rgba(37, 99, 235, 0.2);
  transform: translateY(-3px);
  transition: all 0.3s ease;
}

/* 页脚链接特效 */
footer a:hover {
  padding-left: 5px;
  transition: all 0.2s ease;
}

/* 定制滚动条 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c5c5c5;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
}
