/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 动画效果 */
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

.slide-in {
  animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

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

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

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

/* 响应式调整 */
@media (max-width: 640px) {
  .grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .lg:col-span-2, .lg:col-span-1 {
    grid-column: span 1 / span 1;
  }
  
  .text-xl {
    font-size: 1.25rem;
  }
  
  .text-2xl {
    font-size: 1.5rem;
  }
  
  .p-8 {
    padding: 4rem 1rem;
  }
}

/* 表格样式调整 */
table {
  width: 100%;
  border-collapse: collapse;
}

td, th {
  padding: 0.75rem 1rem;
  text-align: left;
}

tr:hover {
  background-color: rgba(59, 130, 246, 0.05);
}

/* 按钮样式微调 */
button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* 进度条动画 */
#progress-bar {
  transition: width 0.3s ease-in-out;
}

/* 提示框动画 */
#toast {
  transition: transform 0.3s ease-in-out;
}

/* 下拉菜单动画 */
#user-dropdown {
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
  transform-origin: top right;
  transform: scale(0.95);
  opacity: 0;
}

#user-dropdown:not(.hidden) {
  transform: scale(1);
  opacity: 1;
}

/* 密码可见性切换按钮 */
button[id^="toggle-"] {
  cursor: pointer;
}

/* 文件上传区域样式 */
#upload-area {
  transition: all 0.2s ease-in-out;
}

#upload-area:hover {
  background-color: rgba(59, 130, 246, 0.05);
}
    