
/* ok_university_website/frontend/css/style.css */
:root {
  --primary-color: #6366f1;
  --secondary-color: #8b5cf6;
  --accent-color: #4f46e5;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* 高级动画效果 */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@keyframes glow {
  0% { box-shadow: 0 0 10px rgba(99, 102, 241, 0.5); }
  50% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.8); }
  100% { box-shadow: 0 0 10px rgba(99, 102, 241, 0.5); }
}

@keyframes textGlow {
  0% { text-shadow: 0 0 5px rgba(99, 102, 241, 0.3); }
  50% { text-shadow: 0 0 15px rgba(99, 102, 241, 0.7); }
  100% { text-shadow: 0 0 5px rgba(99, 102, 241, 0.3); }
}

/* 基础样式 */
body {
  font-family: 'Noto Sans SC', sans-serif;
  color: var(--text-primary);
  background: linear-gradient(to bottom, var(--bg-dark), var(--bg-darker));
  line-height: 1.6;
  min-height: 100vh;
}

/* 高级毛玻璃效果 */
.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.glass-effect-light {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* 3D卡片效果 */
.card-3d {
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-3d:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* 高级按钮样式 */
.btn-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn-gradient:hover::before {
  opacity: 1;
}

/* 悬浮动画 */
.hover-float {
  transition: transform 0.3s ease;
}

.hover-float:hover {
  transform: translateY(-5px);
}

/* 文字发光效果 */
.text-glow {
  animation: textGlow 3s ease-in-out infinite;
}

/* 高级边框效果 */
.border-glow {
  position: relative;
}

.border-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* 响应式字体 */
.text-responsive {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.heading-responsive {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

/* 高级分隔线 */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(99, 102, 241, 0.5), transparent);
}

/* 媒体查询 - 平板 */
@media (min-width: 768px) {
  .md\:flex-row {
    flex-direction: row;
  }
}

/* 媒体查询 - 桌面 */
@media (min-width: 1024px) {
  .lg\:w-1\/2 {
    width: 50%;
  }
}

/* 粒子特效基础 */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* 高级加载动画 */
.loader {
  width: 48px;
  height: 48px;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

.loader::after {
  content: '';  
  box-sizing: border-box;
  position: absolute;
  left: 50%;
  top: 0;
  background: var(--secondary-color);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

@keyframes rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 高级滚动条 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}
