/* Material Design 微交互动效 */
:root {
  --transition-standard: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-decelerate: 0.3s cubic-bezier(0.0, 0.0, 0.2, 1);
  --transition-accelerate: 0.2s cubic-bezier(0.4, 0.0, 1, 1);
  --shadow-color: rgba(0, 123, 255, 0.25);
  --hover-background: rgba(13, 110, 253, 0.04);
}

/* 按钮悬停动效 */
.btn {
  transition: transform var(--transition-standard), 
              box-shadow var(--transition-standard), 
              background-color var(--transition-standard);
  will-change: transform;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.05);
  z-index: 1;
}

.btn:active {
  transform: scale(0.98);
  transition: transform 0.1s;
}

/* 表单元素聚焦效果 */
.form-control:focus,
.form-select:focus {
  border-color: #86b7fe;
  box-shadow: inset 0 0 0 2px var(--shadow-color);
  transition: box-shadow var(--transition-standard), border-color var(--transition-standard);
}

/* 表单元素悬停效果 */
.form-control:hover:not(:focus),
.form-select:hover:not(:focus) {
  border-color: #86b7fe;
  transition: border-color var(--transition-standard);
}

/* 卡片悬停效果 */
.custom-card {
  transition: transform var(--transition-decelerate),
              box-shadow var(--transition-decelerate);
}

.custom-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* 列表行悬停效果 */
.table tbody tr {
  transition: background-color var(--transition-standard);
}

.table tbody tr:hover {
  background-color: var(--hover-background);
}

/* 页面过渡动画 */
@keyframes slide-fade-in {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.container-fluid, 
.container {
  animation: slide-fade-in 300ms cubic-bezier(0.0, 0.0, 0.2, 1) forwards;
}

.card {
  animation: fade-in 300ms ease forwards;
}

/* 导航项悬停效果 */
.nav-link {
  position: relative;
  transition: color var(--transition-standard);
}

.nav-link:not(.active):hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: currentColor;
  transition: all var(--transition-standard);
}

.nav-link:hover:after {
  width: 80%;
  left: 10%;
}

/* 波纹效果 */
.btn {
  position: relative;
  overflow: hidden;
}

.btn:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(30, 30);
    opacity: 0;
  }
}

/* 交互组件动效 */
.department-item {
  transition: padding-left var(--transition-standard);
}

.department-item:hover {
  padding-left: 5px;
  background-color: var(--hover-background);
}

.toggle-icon {
  transition: transform var(--transition-standard);
}

.active-department {
  position: relative;
  transition: color var(--transition-standard), font-weight var(--transition-standard);
}

.active-department:before {
  content: '';
  position: absolute;
  left: -5px;
  top: 0;
  height: 100%;
  width: 3px;
  background-color: #0d6efd;
  transform: scaleY(0);
  transition: transform var(--transition-standard);
}

.active-department:hover:before {
  transform: scaleY(1);
}

/* 悬浮操作按钮效果 */
.file-upload-area {
  transition: all var(--transition-standard);
}

.file-upload-area:hover {
  background-color: rgba(13, 110, 253, 0.05);
  border-color: #86b7fe;
}

/* 通知提示动画 */
.toast {
  animation: slide-up 0.3s ease forwards;
}

@keyframes slide-up {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 面包屑导航动效 */
.breadcrumb {
  animation: fade-in 0.4s ease forwards;
}

.breadcrumb-item a {
  transition: color var(--transition-standard);
}

.breadcrumb-item a:hover {
  background-color: transparent;
}

/* 模态框动效 */
.modal-content {
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.0, 0.0, 0.2, 1),
              opacity 0.3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

/* 进度指示组件动效 */
.progress-bar {
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 标签页切换动效 */
.tab-pane {
  animation: fade-in 0.25s ease-out forwards;
}

.nav-tabs .nav-link {
  transition: background-color var(--transition-standard),
              color var(--transition-standard),
              border-color var(--transition-standard);
}

/* 全局样式 */
body {
    background-color: #f5f5f5;
    font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(90deg, #4B6CB7 0%, #182848 100%);
    padding: 0;
    height: 50px;
}

.navbar-brand {
    color: #fff !important;
    font-size: 14px;
    padding: 0 15px;
    height: 50px;
    display: flex;
    align-items: center;
    margin: 0;
}

.navbar-brand i {
    margin-right: 8px;
}

.nav-link {
    color: rgba(255,255,255,0.8) !important;
    padding: 0 20px !important;
    font-size: 14px;
    height: 50px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.nav-link i {
    margin-right: 6px;
    font-size: 16px;
}

.nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
}

.nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.15);
    font-weight: normal;
}

/* 下拉菜单样式 */
.dropdown-toggle {
    color: #fff !important;
    height: 50px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    font-size: 14px;
    background: transparent;
    border: none;
}

.dropdown-toggle i {
    margin-right: 6px;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
}

.dropdown-menu {
    margin-top: 0;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 5px 0;
}

.dropdown-item {
    padding: 8px 15px;
    font-size: 14px;
}

.dropdown-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* 面包屑导航样式 */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.breadcrumb-item a {
    color: #333;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #666;
}

/* 按钮样式 */
.btn-sm {
    padding: 4px 12px;
    font-size: 14px;
    border-radius: 4px;
}

.btn-sm i {
    margin-right: 4px;
}

.btn-outline-secondary {
    border-color: #dee2e6;
    color: #666;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #333;
}

/* 卡片样式 */
.custom-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.custom-card .card-header {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
}

.custom-card .card-title {
    font-size: 16px;
    margin: 0;
    display: flex;
    align-items: center;
}

.custom-card .card-title i {
    margin-right: 8px;
    font-size: 18px;
}

.custom-card .card-body {
    padding: 20px;
}

/* 表格样式 */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: normal;
    color: #666;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.table td {
    vertical-align: middle;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

/* 表单样式 */
.form-label {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.form-control {
    font-size: 14px;
    border-color: #dee2e6;
    padding: 8px 12px;
}

.form-control:focus {
    border-color: #4B6CB7;
    box-shadow: 0 0 0 0.2rem rgba(75,108,183,0.25);
}

/* 进度条样式 */
.progress {
    background-color: #f0f0f0;
    height: 6px;
    border-radius: 3px;
}

.progress-bar {
    border-radius: 3px;
}

/* 徽章样式 */
.badge {
    font-weight: normal;
    padding: 4px 8px;
    border-radius: 4px;
}

/* 提示框样式 */
.alert {
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-light {
    background-color: #f8f9fa;
    border-color: #f0f0f0;
}

/* 工具类 */
.fw-medium {
    font-weight: 500 !important;
}

.text-muted {
    color: #666 !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
} 