/* ==========================================================================
   SINO GENOMICS (中大基因) 官方旗舰企业门户 - 核心样式表
   Design Language: Cyber-Biotech Deep Glassmorphism & High-Precision Geometry
   ========================================================================== */

:root {
  --bg-dark: #070b16;
  --bg-dark-rgb: 7, 11, 22;
  --bg-surface: #0e162b;
  --bg-surface-elevated: #131d38;
  --bg-glass: rgba(14, 22, 43, 0.72);
  --bg-glass-card: rgba(19, 29, 56, 0.58);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(56, 189, 248, 0.16);
  --border-highlight: rgba(45, 212, 191, 0.38);
  
  --brand-teal: #0d9488;
  --brand-teal-light: #14b8a6;
  --brand-teal-glow: rgba(20, 184, 166, 0.25);
  
  --brand-cyan: #06b6d4;
  --brand-cyan-light: #22d3ee;
  
  --brand-blue: #2563eb;
  --brand-blue-light: #3b82f6;
  --brand-blue-glow: rgba(59, 130, 246, 0.25);

  --brand-indigo: #4f46e5;
  --brand-violet: #8b5cf6;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #2dd4bf;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  
  --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 28px -4px rgba(20, 184, 166, 0.22);
  --shadow-glow-blue: 0 0 28px -4px rgba(59, 130, 246, 0.25);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', sans-serif;
  --font-heading: 'Montserrat', 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Space Grotesk', monospace;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #101c3d 0%, #070b16 55%, #050811 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-teal);
}

/* Typography Enhancements */
h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.font-mono {
  font-family: var(--font-mono);
}

/* Glassmorphism Containers */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: var(--border-glass);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* Gradient Texts */
.gradient-text-teal {
  background: linear-gradient(135deg, #5eead4 0%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-blue {
  background: linear-gradient(135deg, #93c5fd 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #fde047 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-silver {
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* High-tech Grid Background */
.bg-cyber-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Glowing Badges & Tags */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.badge-teal {
  background: rgba(13, 148, 136, 0.15);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.3);
}

.badge-blue {
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.badge-purple {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.3);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Pulse Dot */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: relative;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  animation: pulse-ring 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}
.pulse-dot.teal {
  background-color: #2dd4bf;
}
.pulse-dot.teal::after {
  border: 2px solid #2dd4bf;
}
.pulse-dot.blue {
  background-color: #60a5fa;
}
.pulse-dot.blue::after {
  border: 2px solid #60a5fa;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.9; }
  70% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Nav Active Indicators */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #14b8a6, #3b82f6);
  transition: all 0.25s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Interactive Tabs */
.tab-btn {
  position: relative;
  transition: all 0.25s ease;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.tab-btn.active {
  background: rgba(13, 148, 136, 0.18);
  color: #2dd4bf;
  border-color: rgba(45, 212, 191, 0.4);
  box-shadow: 0 0 16px rgba(13, 148, 136, 0.15);
}

/* Interactive Sliders & Inputs */
input[type="range"] {
  accent-color: #14b8a6;
}

/* Modals */
.modal-backdrop {
  background-color: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-content {
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 35px rgba(20, 184, 166, 0.2);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.toast-msg {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: #f8fafc;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Code / Tech Blocks */
.code-block {
  background: #060b14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #38bdf8;
  overflow-x: auto;
}

/* Animation Utilities */
@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.animate-float {
  animation: float-slow 4s ease-in-out infinite;
}

/* Touch & Focus states */
button:focus-visible, a:focus-visible {
  outline: 2px solid #2dd4bf;
  outline-offset: 2px;
}
