/* ============================================================
   数字航海 - Plain CSS (complements Tailwind browser build)
   ============================================================ */

/* Base style setups */
html {
  color-scheme: dark;
}

body {
  margin: 0;
  background-color: #0a0502;
  color: #ffffff;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  font-family: var(--font-sans, "Inter", system-ui, sans-serif);
}

/* Glass card styling */
.glass-card-main {
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

/* System tags and headings */
.tag-system {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.4);
  border-left: 2px solid #ff4e00;
  padding-left: 12px;
}

/* Atmosphere background */
.atmosphere {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 15% 20%, #3a1510 0%, transparent 60%),
    radial-gradient(circle at 85% 80%, #112133 0%, transparent 60%);
  background-color: #0a0502;
  z-index: 0;
  opacity: 0.9;
  pointer-events: none;
}

/* Force serif on big headers for that refined editorial touch */
h1 {
  font-family: var(--font-serif, Georgia, serif) !important;
  font-weight: 400 !important;
}

/* ---------- Animations ---------- */
@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

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

@keyframes bump {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pop {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  60% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-view-in {
  animation: viewIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-in {
  animation: slideIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float {
  animation: float 4.5s ease-in-out infinite;
}

.animate-bump {
  animation: bump 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-spin-slow {
  animation: spin 8s linear infinite;
}

.animate-fade-in {
  animation: fadeIn 0.25s ease-out forwards;
}

.animate-modal-pop {
  animation: modalPop 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-pop {
  animation: pop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ---------- Scrollbar polish ---------- */
.scrollbar-thin {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}
.scrollbar-thin::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.scrollbar-thin::-webkit-scrollbar-track {
  background: transparent;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}
.scrollbar-thumb-white\/10::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
}

/* Soft inner shadow helper used across cards */
.shadow-inner-soft {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 24px -16px rgba(0, 0, 0, 0.6);
}

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