/* 补充样式文件 */

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

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

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

/* 选择框下拉箭头动画 */
.select-custom:focus {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%233b82f6' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

/* 按钮点击效果 */
.btn-hover:active {
  transform: translateY(-1px) scale(0.98);
}

/* 工具卡片点击效果 */
.tool-card:active {
  transform: translateY(-3px) scale(0.98);
}

/* 文本区域聚焦效果 */
.textarea-custom:focus {
  transform: scale(1.01);
}

/* 加载动画 */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .select-custom {
    width: 100%;
  }
  
  .btn-hover {
    padding: 0.75rem 1rem;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .gradient-bg {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  }
  
  .glass-card {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.2);
  }
  
  .text-gray-800 {
    color: #f9fafb !important;
  }
  
  .text-gray-600 {
    color: #d1d5db !important;
  }
  
  .text-gray-700 {
    color: #e5e7eb !important;
  }
}

/* 打印样式 */
@media print {
  .gradient-bg {
    background: white !important;
  }
  
  .glass-card {
    background: white !important;
    border: 1px solid #e5e7eb !important;
  }
  
  .btn-hover {
    display: none;
  }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
  .glass-card {
    background: white;
    border: 2px solid #000;
  }
  
  .btn-hover {
    border: 2px solid #000;
  }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}