/**
 * 渐变色按钮样式集合
 * 提供8种美观且协调的渐变色按钮
 */

/* 基础按钮样式 */
.btn-gradient {
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease-in-out;
    color: white;
    text-align: center;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-gradient:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 1. 蓝色渐变 - 原始样式 */
.btn-blue-gradient {
    background-image: linear-gradient(to right, #3b82f6, #1d4ed8);
}

.btn-blue-gradient:hover {
    background-image: linear-gradient(to right, #2563eb, #1e40af);
}

/* 2. 紫色渐变 */
.btn-purple-gradient {
    background-image: linear-gradient(to right, #8b5cf6, #6d28d9);
}

.btn-purple-gradient:hover {
    background-image: linear-gradient(to right, #7c3aed, #5b21b6);
}

/* 3. 绿色渐变 */
.btn-green-gradient {
    background-image: linear-gradient(to right, #10b981, #059669);
}

.btn-green-gradient:hover {
    background-image: linear-gradient(to right, #059669, #047857);
}

/* 4. 红色渐变 */
.btn-red-gradient {
    background-image: linear-gradient(to right, #ef4444, #dc2626);
}

.btn-red-gradient:hover {
    background-image: linear-gradient(to right, #dc2626, #b91c1c);
}

/* 5. 橙色渐变 */
.btn-orange-gradient {
    background-image: linear-gradient(to right, #f97316, #ea580c);
}

.btn-orange-gradient:hover {
    background-image: linear-gradient(to right, #ea580c, #c2410c);
}

/* 6. 青色渐变 */
.btn-teal-gradient {
    background-image: linear-gradient(to right, #14b8a6, #0d9488);
}

.btn-teal-gradient:hover {
    background-image: linear-gradient(to right, #0d9488, #0f766e);
}

/* 7. 粉色渐变 */
.btn-pink-gradient {
    background-image: linear-gradient(to right, #ec4899, #db2777);
}

.btn-pink-gradient:hover {
    background-image: linear-gradient(to right, #db2777, #be185d);
}

/* 8. 深蓝渐变 */
.btn-indigo-gradient {
    background-image: linear-gradient(to right, #6366f1, #4f46e5);
}

.btn-indigo-gradient:hover {
    background-image: linear-gradient(to right, #4f46e5, #4338ca);
}

/* 动画效果 - 可选添加 */
.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* 为推荐工具添加动态样式 */
.recommended-tool {
  position: relative;
  border: none !important;
}

.recommended-tool::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(90deg, #ff00cc, #3333ff, #00ccff, #33cc33, #ff00cc);
  background-size: 300% 300%;
  border-radius: 10px;
  z-index: -1;
  animation: gradient-border 3s ease infinite;
}

@keyframes gradient-border {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.recommended-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: linear-gradient(45deg, #ff3366, #ff9933);
  color: white;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 0 8px 0 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  z-index: 1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(255,51,102,0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }
} 