/* 个人智能工具箱 - 自定义样式 */
/* 基于 AniStage 设计系统 */

:root {
  /* 蓝色系品牌色 */
  --color-primary: #2563EB;
  --color-secondary: #3B82F6;
  --color-accent: #06B6D4;
  --color-dark: #1E3A5F;
  --color-text: #374151;
  --color-text-light: #6B7280;

  /* 渐变 */
  --gradient-hero: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #06B6D4 100%);
  --gradient-card: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);

  /* 圆角 */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;

  /* 阴影 */
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* 过渡 */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

/* 渐变背景样式 */
.gradient-hero {
  background: var(--gradient-hero);
}

.gradient-card {
  background: var(--gradient-card);
}

/* Hero区域样式 */
.hero-section {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: hero-float 20s ease-in-out infinite;
  z-index: 1;
}

.hero-section>* {
  position: relative;
  z-index: 2;
}

@keyframes hero-float {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(-10%, 5%) rotate(120deg);
  }

  66% {
    transform: translate(10%, -5%) rotate(240deg);
  }
}

/* 工具卡片样式 */
.tool-card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid #e5e7eb;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-secondary);
}

/* 分类卡片 */
.category-card {
  background: var(--gradient-hero);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.category-card:hover::before {
  opacity: 1;
}

.category-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

/* 按钮样式 */
.btn-primary {
  background: var(--gradient-hero);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 10;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-hover);
  filter: brightness(1.1);
}

.btn-secondary {
  background: white;
  color: var(--color-primary);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  display: inline-block;
  text-decoration: none;
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

/* 功能卡片 */
.feature-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-base);
  border: 1px solid #f3f4f6;
}

.feature-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-card);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
}

/* 徽章样式 */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-primary {
  background: rgba(139, 92, 246, 0.1);
  color: var(--color-primary);
}

.badge-secondary {
  background: rgba(236, 72, 153, 0.1);
  color: var(--color-secondary);
}

.badge-accent {
  background: rgba(245, 158, 11, 0.1);
  color: var(--color-accent);
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 响应式图片 */
img {
  max-width: 100%;
  height: auto;
}

/* 备案信息样式 */
.beian-link {
  color: #9ca3af;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.beian-link:hover {
  color: #ffffff;
}

/* 移动端菜单 */
.mobile-menu {
  display: none;
}

@media (max-width: 767px) {
  .mobile-menu.active {
    display: block;
  }
}

/* 加载动画 */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out forwards;
}

/* 工具图标样式 */
.tool-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-card);
}

/* 焦点样式 */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}