/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg-primary: #f4f5fb;
  --bg-secondary: rgba(255, 255, 255, 0.72);
  --bg-sidebar: rgba(255, 255, 255, 0.62);
  --bg-elevated: #ffffff;
  --text-primary: #16182a;
  --text-secondary: #5b6074;
  --text-muted: #9298ad;
  --border-color: rgba(22, 24, 42, 0.08);
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-light: rgba(99, 102, 241, 0.1);
  --accent-2: #a855f7;
  --accent-3: #22d3ee;
  --success: #22c55e;
  --shadow: 0 4px 20px rgba(31, 38, 90, 0.06);
  --shadow-lg: 0 12px 40px rgba(31, 38, 90, 0.1);
  --shadow-accent: 0 8px 32px rgba(99, 102, 241, 0.28);
  --radius: 10px;
  --radius-lg: 18px;
  --sidebar-width: 220px;
  --focus-ring: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

html.dark {
  --bg-primary: #0b0f1f;
  --bg-secondary: rgba(23, 29, 52, 0.55);
  --bg-sidebar: rgba(13, 17, 33, 0.55);
  --bg-elevated: #131a30;
  --text-primary: #e6e9f5;
  --text-secondary: #9aa3c0;
  --text-muted: #5d6684;
  --border-color: rgba(255, 255, 255, 0.08);
  --accent: #818cf8;
  --accent-hover: #6366f1;
  --accent-light: rgba(129, 140, 248, 0.12);
  --accent-2: #c084fc;
  --accent-3: #22d3ee;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-accent: 0 8px 32px rgba(129, 140, 248, 0.25);
  --focus-ring: 0 0 0 3px rgba(129, 140, 248, 0.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue",
    Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

/* 环境光晕背景（aurora blobs） */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  transition: opacity 0.3s;
}

body::before {
  width: 560px;
  height: 560px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18), transparent 65%);
}

body::after {
  width: 480px;
  height: 480px;
  bottom: -160px;
  left: -100px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.13), transparent 65%);
}

html.dark body::before {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22), transparent 65%);
}

html.dark body::after {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.1), transparent 65%);
}

button {
  cursor: pointer;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: var(--focus-ring);
}

/* 细滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: rgba(120, 128, 160, 0.35);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(120, 128, 160, 0.55);
}

::-webkit-scrollbar-track {
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Toast 淡入上滑动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* 表格行悬停 */
.row-hover:hover {
  background: var(--accent-light) !important;
}

/* 入场动画 */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes chipPop {
  0% {
    transform: scale(1) rotate(0deg);
  }
  60% {
    transform: scale(1.1) rotate(-4deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes bobY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* 工具类 */
.anim-rise {
  animation: riseIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.anim-slide-in {
  animation: slideIn 0.4s ease both;
}

/* 悬停动效（卡片 + 图标块 + 箭头） */
.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, 0.35);
}

.card:hover .chip {
  animation: chipPop 0.45s ease;
}

.card:hover .go {
  gap: 8px;
  color: var(--accent);
}

.chip {
  transition: transform 0.25s ease;
}

.go {
  transition: gap 0.25s ease, color 0.2s ease;
}

/* 侧边栏菜单项 */
.nav-link {
  transition: all 0.18s ease;
}

.nav-link:hover {
  background: var(--accent-light) !important;
  transform: translateX(3px);
}

/* 按钮按压反馈 */
button:active {
  transform: scale(0.96);
}

@media (prefers-reduced-motion: reduce) {
  .anim-rise,
  .anim-slide-in,
  .anim-rise * {
    animation: none;
  }
}

