/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #FF9B9B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FF6B6B;
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 渐变背景 */
.gradient-bg {
  background: linear-gradient(135deg, #FF9B9B 0%, #FFC8C8 100%);
}

/* 卡片悬停效果 */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(255, 155, 155, 0.2);
}

/* 导航栏滚动效果 */
.nav-scrolled {
  background-color: rgba(255, 245, 245, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-scrolled a {
  color: #5A5A5A !important;
}

.nav-scrolled a:hover {
  color: #FF6B6B !important;
}

/* 淡入动画 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

.delay-5 {
  animation-delay: 0.5s;
}

h3:hover {
  color: #FF6B6B;
}

/* 浮动动画 */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delay-1 {
  animation: float 6s ease-in-out 1s infinite;
}

.animate-float-delay-2 {
  animation: float 6s ease-in-out 2s infinite;
}

/* AI 思考动画 */
@keyframes thinking-pulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.thinking-dot {
  animation: thinking-pulse 1.4s ease-in-out infinite;
}

.thinking-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.thinking-dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* 打字机光标 */
@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.typing-cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
  margin-left: 2px;
  color: #FF6B6B;
}
