/* ===============================
   Aviation Toolkit Pro · Theme
   玻璃态 · 深空航空 · 动态效果
   =============================== */

:root {
  --bg-0: #05080e;
  --bg-1: #0a101c;
  --bg-2: #0d1424;
  --panel: rgba(14, 20, 34, 0.72);
  --panel-2: rgba(20, 28, 44, 0.78);
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 230, 118, 0.35);

  --green: #00e676;
  --green-2: #00c853;
  --green-glow: rgba(0, 230, 118, 0.55);
  --amber: #ffb300;
  --amber-2: #ff8f00;
  --amber-glow: rgba(255, 179, 0, 0.55);
  --blue: #1e88e5;
  --blue-2: #42a5f5;
  --blue-glow: rgba(30, 136, 229, 0.55);
  --red: #ff5252;
  --red-glow: rgba(255, 82, 82, 0.55);
  --cyan: #18ffff;
  --cyan-glow: rgba(24, 255, 255, 0.55);

  --white: #e8eef7;
  --gray: #7d8a9e;
  --gray-2: #4a5466;

  --font-mono: 'JetBrains Mono', 'Cascadia Code', 'Consolas', 'Courier New', monospace;
  --font-sans: 'Inter', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 18px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55);

  --glow-green: 0 0 12px var(--green-glow), 0 0 24px rgba(0, 230, 118, 0.18);
  --glow-amber: 0 0 12px var(--amber-glow), 0 0 24px rgba(255, 179, 0, 0.18);
  --glow-blue:  0 0 12px var(--blue-glow),  0 0 24px rgba(30, 136, 229, 0.18);
  --glow-red:   0 0 12px var(--red-glow),   0 0 24px rgba(255, 82, 82, 0.18);
  --glow-cyan:  0 0 12px var(--cyan-glow),  0 0 24px rgba(24, 255, 255, 0.18);

  --dur: 0.28s;
  --dur-lg: 0.5s;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: rgba(0, 230, 118, 0.28); color: var(--white); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 230, 118, 0.5), rgba(30, 136, 229, 0.5));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--green), var(--blue)); }

html, body { min-height: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--white);
  background: var(--bg-0);
  position: relative;
  overflow-x: hidden;
  padding: 20px 16px 48px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* =====================
   动态背景 · 星点 · 网格 · 辉光
   ===================== */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(0, 230, 118, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 75%, rgba(30, 136, 229, 0.09) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 179, 0, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
}

body::after {
  content: '';
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(0, 230, 118, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 136, 229, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9) 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9) 0%, transparent 80%);
  pointer-events: none;
}

/* 星点动画层 */
.bg-stars {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.bg-stars .star {
  position: absolute;
  width: 2px; height: 2px; border-radius: 50%;
  background: #ffffff;
  opacity: 0;
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 0.8; transform: scale(1.2); box-shadow: 0 0 6px rgba(255,255,255,0.9); }
}

/* =====================
   主容器 · 玻璃态
   ===================== */
.container {
  max-width: 1180px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* 页头 */
.header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 22px;
  padding: 18px 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
}
.header::before {
  content: '';
  position: absolute; top: 0; left: -60%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.12), transparent);
  transform: skewX(-20deg);
  animation: sheen 6s linear infinite;
}
@keyframes sheen {
  0% { left: -60%; } 100% { left: 110%; }
}
.header h1 {
  font-size: 1.55rem; font-weight: 800; letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 60%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(0,230,118,0.15));
}
.header .sub {
  font-size: 0.7rem; color: var(--gray);
  letter-spacing: 1.4px; text-transform: uppercase;
  margin-top: 2px;
}
.header .badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  font-size: 0.65rem;
  color: var(--green);
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: 999px;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}
.header .badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green-glow);
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* =====================
   通用组件动画
   ===================== */
.fadeIn { animation: fadeIn 0.45s var(--ease) both; }
.slideUp { animation: slideUp 0.5s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.shimmer {
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(0, 230, 118, 0.08) 40%,
    rgba(30, 136, 229, 0.08) 60%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 240% 100%;
  animation: shimmerMove 3.5s ease-in-out infinite;
}
@keyframes shimmerMove {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
