/* ==========================================================================
   EarthOnlineSurvival - Custom CSS System
   Modern Dual-Theme System (Dark Default + Clean Light Mode)
   Zero external dependencies
   ========================================================================== */

:root {
  /* Surface & Backgrounds */
  --bg-primary: #0a0f1d;
  --bg-secondary: #0f172a;
  --bg-card: #151f32;
  --bg-card-hover: #1c2942;
  --bg-card-header: #19253c;
  --nav-bg: rgba(10, 15, 29, 0.88);
  --modal-backdrop-bg: rgba(5, 8, 16, 0.75);

  /* Borders */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(56, 189, 248, 0.35);

  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Accent Colors */
  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-indigo: #818cf8;

  /* Glow Effects */
  --glow-cyan: rgba(56, 189, 248, 0.15);
  --glow-cyan-strong: rgba(56, 189, 248, 0.25);
  --glow-emerald: rgba(16, 185, 129, 0.15);
  --glow-amber: rgba(245, 158, 11, 0.15);
  --glow-rose: rgba(244, 63, 94, 0.15);

  /* Radius & Shadows */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 10px 30px -4px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.2);
  --hero-shadow: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.7));

  /* Interactive Elements */
  --btn-outline-bg: rgba(255, 255, 255, 0.04);
  --btn-outline-hover-bg: rgba(255, 255, 255, 0.08);
  --card-link-bg: rgba(255, 255, 255, 0.02);
  --card-link-hover-bg: rgba(56, 189, 248, 0.08);
  --nav-link-hover-bg: rgba(255, 255, 255, 0.05);

  /* Gradients */
  --hero-title-gradient: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
  --bg-gradient-1: rgba(56, 189, 248, 0.08);
  --bg-gradient-2: rgba(16, 185, 129, 0.05);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s ease;
}

/* Light Theme Variables */
[data-theme="light"] {
  /* Surface & Backgrounds */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-card-header: #f8fafc;
  --nav-bg: rgba(255, 255, 255, 0.88);
  --modal-backdrop-bg: rgba(15, 23, 42, 0.45);

  /* Borders */
  --border-color: rgba(0, 0, 0, 0.09);
  --border-highlight: rgba(14, 165, 233, 0.45);

  /* Typography */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  /* Accent Colors (calibrated for high contrast & vibrancy on light theme) */
  --accent-cyan: #0284c7;
  --accent-blue: #2563eb;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;
  --accent-indigo: #4f46e5;

  /* Glow Effects */
  --glow-cyan: rgba(2, 132, 199, 0.12);
  --glow-cyan-strong: rgba(2, 132, 199, 0.18);
  --glow-emerald: rgba(5, 150, 105, 0.12);
  --glow-amber: rgba(217, 119, 6, 0.12);
  --glow-rose: rgba(225, 29, 72, 0.12);

  /* Shadows (softer, natural ambient occlusion) */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 25px rgba(14, 165, 233, 0.16);
  --hero-shadow: drop-shadow(0 15px 30px rgba(15, 23, 42, 0.22));

  /* Interactive Elements */
  --btn-outline-bg: rgba(0, 0, 0, 0.03);
  --btn-outline-hover-bg: rgba(0, 0, 0, 0.06);
  --card-link-bg: rgba(0, 0, 0, 0.02);
  --card-link-hover-bg: rgba(2, 132, 199, 0.08);
  --nav-link-hover-bg: rgba(0, 0, 0, 0.04);

  /* Gradients */
  --hero-title-gradient: linear-gradient(135deg, #0f172a 40%, #334155 100%);
  --bg-gradient-1: rgba(14, 165, 233, 0.06);
  --bg-gradient-2: rgba(16, 185, 129, 0.04);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--bg-gradient-1), transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 80%, var(--bg-gradient-2), transparent 60%);
  background-attachment: fixed;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.main-content {
  flex: 1 0 auto;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.75rem; }
.mb-6 { margin-bottom: 3.75rem; }
.my-1 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-2 { margin-top: 1rem; margin-bottom: 1rem; }
.my-3 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-4 { margin-top: 2rem; margin-bottom: 2rem; }
.my-5 { margin-top: 2.75rem; margin-bottom: 2.75rem; }

/* Section scroll offset for fixed/sticky navbar */
section[id],
.card[id] {
  scroll-margin-top: 84px;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.9rem 0;
  transition: all var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--glow-cyan));
  transition: transform var(--transition-fast);
}

.brand:hover .brand-icon {
  transform: rotate(20deg) scale(1.08);
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-left: 0.35rem;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Theme Toggle Button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--btn-outline-bg);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--btn-outline-hover-bg);
  border-color: var(--border-highlight);
  color: var(--accent-cyan);
  transform: scale(1.06);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.theme-toggle:hover svg {
  transform: rotate(15deg);
}

/* In Dark Theme (default): show sun icon to switch to light */
.theme-toggle .sun-icon {
  display: block;
}
.theme-toggle .moon-icon {
  display: none;
}

/* In Light Theme: show moon icon to switch to dark */
[data-theme="light"] .theme-toggle .sun-icon {
  display: none;
}
[data-theme="light"] .theme-toggle .moon-icon {
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.5rem;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--nav-link-hover-bg);
  text-decoration: none;
}

.nav-link.active {
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.nav-toggle {
  display: none;
  background: var(--btn-outline-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: all var(--transition-fast);
}

.nav-toggle:hover {
  background: var(--btn-outline-hover-bg);
  border-color: var(--border-highlight);
}

/* Hero Section */
.hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-cyan);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero-title {
  margin-bottom: 0.75rem;
  background: var(--hero-title-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--accent-cyan);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-description {
  max-width: 680px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.hero-image-wrap {
  position: relative;
  max-width: 380px;
  margin: 2rem auto 2.5rem;
}

.hero-image-wrap::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--glow-cyan-strong) 0%, rgba(56, 189, 248, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 340px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: var(--hero-shadow);
  animation: float 6s ease-in-out infinite;
}

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

/* Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1.2;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-outline {
  background: var(--btn-outline-bg);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-outline:hover {
  background: var(--btn-outline-hover-bg);
  border-color: var(--border-highlight);
  color: var(--text-primary);
}

.btn-cyan {
  background: var(--accent-cyan);
  color: #04101e;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

.btn-cyan:hover {
  background: #7dd3fc;
  color: #04101e;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
}

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

.card-header {
  padding: 1.2rem 1.4rem;
  background: var(--bg-card-header);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card-body {
  padding: 1.4rem;
  flex: 1 1 auto;
}

/* Card Lists & Interactive items */
.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-list-item {
  display: flex;
  align-items: center;
}

.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--card-link-bg);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.card-link::after {
  content: "→";
  color: var(--text-dim);
  font-weight: bold;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.card-link:hover {
  color: var(--accent-cyan);
  background: var(--card-link-hover-bg);
  border-color: var(--border-highlight);
  text-decoration: none;
  transform: translateX(4px);
}

.card-link:hover::after {
  color: var(--accent-cyan);
  transform: translateX(3px);
}

/* Category Badge Pills */
.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.badge-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-cyan { background: rgba(6, 182, 212, 0.15); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-rose { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); }

[data-theme="light"] .badge-blue { background: rgba(37, 99, 235, 0.1); color: #1d4ed8; border-color: rgba(37, 99, 235, 0.25); }
[data-theme="light"] .badge-cyan { background: rgba(8, 145, 178, 0.1); color: #0e7490; border-color: rgba(8, 145, 178, 0.25); }
[data-theme="light"] .badge-emerald { background: rgba(5, 150, 105, 0.1); color: #047857; border-color: rgba(5, 150, 105, 0.25); }
[data-theme="light"] .badge-amber { background: rgba(217, 119, 6, 0.1); color: #b45309; border-color: rgba(217, 119, 6, 0.25); }
[data-theme="light"] .badge-rose { background: rgba(225, 29, 72, 0.1); color: #be123c; border-color: rgba(225, 29, 72, 0.25); }

/* Quick Feature Highlights (Homepage) */
.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all var(--transition-fast);
}

.feature-box:hover {
  border-color: var(--border-highlight);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 2rem;
  line-height: 1;
}

.feature-title {
  font-size: 1.15rem;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Modal Dialog */
.modal-backdrop {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--modal-backdrop-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-backdrop.show {
  display: flex;
  opacity: 1;
}

.modal-window {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8), 0 0 30px var(--glow-cyan);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 820px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: scale(0.96) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-backdrop.show .modal-window {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 1.2rem 1.6rem;
  background: var(--bg-card-header);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.25rem;
  color: var(--accent-cyan);
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--btn-outline-hover-bg);
  color: var(--text-primary);
}

.modal-body {
  padding: 1.75rem 2rem;
  overflow-y: auto;
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 0.98rem;
}

.modal-body h4 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-top: 1.25rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-body h4:first-child {
  margin-top: 0;
}

.modal-body h5 {
  color: var(--accent-cyan);
  font-size: 1.05rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.modal-body ul {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.modal-body ul ul {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
}

.modal-body li {
  margin-bottom: 0.35rem;
}

.modal-body a {
  display: inline-block;
  margin-top: 0.5rem;
}

/* Custom Scrollbar for Modal */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Resource PDF Card */
.pdf-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.pdf-card:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.pdf-icon {
  font-size: 2.2rem;
  color: var(--accent-rose);
  flex-shrink: 0;
}

.pdf-info {
  flex: 1 1 auto;
}

.pdf-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.pdf-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Footer */
.footer {
  margin-top: auto;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-nav {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-cyan);
  text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .modal-window {
    max-height: 90vh;
  }

  .modal-body {
    padding: 1.25rem 1.4rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .mb-5 {
    margin-bottom: 2rem;
  }
}

/* ==========================================================================
   地球Online - MMORPG & Survival Expansion Styles
   ========================================================================== */

/* Server Status & HUD */
.hud-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hud-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald), var(--accent-amber));
}

.hud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  align-items: center;
}

.hud-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hud-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hud-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ping-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  display: inline-block;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse 2s infinite ease-in-out;
}

.ping-dot.amber {
  background-color: var(--accent-amber);
  box-shadow: 0 0 8px var(--accent-amber);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Stat Bars (HP, MP, Stamina, EXP) */
.stat-bar-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
}

.stat-bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.stat-bar-track {
  height: 10px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border-color);
  position: relative;
}

.stat-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.fill-hp {
  background: linear-gradient(90deg, #f43f5e, #fb7185);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.4);
}

.fill-mp {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.fill-stamina {
  background: linear-gradient(90deg, #10b981, #34d399);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.fill-exp {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

/* Character Sheet Generator */
.char-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 960px) {
  .char-layout {
    grid-template-columns: 1fr;
  }
}

.char-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-input, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--glow-cyan);
}

.form-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-select {
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  user-select: none;
}

.chip-select:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.chip-select.selected {
  background: var(--glow-cyan);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 600;
}

.chip-select.debuff.selected {
  background: var(--glow-rose);
  border-color: var(--accent-rose);
  color: var(--accent-rose);
}

/* Character Card Preview & Canvas */
.char-card-retro {
  background: #090d16;
  border: 2px solid #38bdf8;
  border-radius: var(--radius-md);
  padding: 2rem;
  color: #f8fafc;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.25);
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.char-card-retro::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  opacity: 0.35;
}

.char-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(56, 189, 248, 0.4);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.char-name-title {
  display: flex;
  flex-direction: column;
}

.char-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.char-class {
  font-size: 0.95rem;
  color: #38bdf8;
  font-weight: 600;
}

.char-level-badge {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid #38bdf8;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 800;
  color: #38bdf8;
  text-align: center;
}

.char-badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.badge-buff {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-debuff {
  background: rgba(244, 63, 94, 0.18);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fda4af;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.char-gear-list {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1rem;
}

.gear-slot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

.gear-slot-row:last-child {
  border-bottom: none;
}

.gear-slot-name {
  color: #94a3b8;
  font-weight: 500;
}

.gear-slot-item {
  color: #f8fafc;
  font-weight: 600;
}

/* Patch Notes Styling */
.patch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.patch-card:hover {
  border-color: var(--border-highlight);
}

.patch-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.patch-title-group h3 {
  margin-bottom: 0.25rem;
}

.patch-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.patch-tag {
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tag-system {
  background: var(--glow-cyan);
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
}

.tag-balance {
  background: var(--glow-amber);
  color: var(--accent-amber);
  border: 1px solid var(--accent-amber);
}

.tag-bug {
  background: var(--glow-rose);
  color: var(--accent-rose);
  border: 1px solid var(--accent-rose);
}

.tag-class {
  background: rgba(129, 140, 248, 0.15);
  color: var(--accent-indigo);
  border: 1px solid var(--accent-indigo);
}

.patch-content-section {
  margin-top: 1.25rem;
}

.patch-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.patch-notes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.patch-notes-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.patch-notes-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: bold;
}

/* Author Badge & Profile Cards */
.author-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.85rem;
  background: var(--btn-outline-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.author-badge:hover {
  background: var(--card-link-hover-bg);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.author-avatar-sm {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-cyan);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
}

.author-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.author-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-highlight);
}

.author-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.author-avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  box-shadow: 0 0 15px var(--glow-cyan);
}

.author-meta h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.author-title {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.author-server-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.author-bio {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.25rem;
  line-height: 1.5;
  border-left: 3px solid var(--border-highlight);
  padding-left: 0.85rem;
}

.author-guides-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.author-guides-list a {
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.social-pill {
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.social-pill:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Quest Log & Checkable Tasks */
.quest-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.quest-card:hover {
  border-color: var(--border-highlight);
}

.quest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.quest-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quest-exp {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-amber);
  background: var(--glow-amber);
  border: 1px solid var(--accent-amber);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.quest-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  user-select: none;
}

.quest-item:last-child {
  border-bottom: none;
}

.quest-checkbox {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: var(--accent-emerald);
  cursor: pointer;
}

.quest-item.completed .quest-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* Life Skill Tree */
.skill-tree-section {
  margin-bottom: 3rem;
}

.tree-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.skill-node {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  display: flex;
  flex-direction: column;
}

.skill-node:hover {
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
}

.skill-node.learned {
  border-color: var(--accent-emerald);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.skill-node-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.skill-icon {
  font-size: 1.6rem;
}

.skill-level-req {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.skill-node.learned .skill-level-req {
  color: var(--accent-emerald);
  border-color: var(--accent-emerald);
}

.skill-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.skill-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.skill-buff-result {
  font-size: 0.78rem;
  color: var(--accent-emerald);
  font-weight: 600;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   RPG Tables, Hub & Spoke Server Guides, and In-depth Protocols
   ========================================================================== */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.rpg-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  font-size: 0.92rem;
  text-align: left;
}

.rpg-table th {
  background: var(--bg-card-header);
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--accent-cyan);
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.rpg-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  vertical-align: middle;
}

.rpg-table tbody tr:last-child td {
  border-bottom: none;
}

.rpg-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.quick-nav-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.quick-nav-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.protocol-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-rose);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  scroll-margin-top: 80px;
}

.protocol-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #0a0f1d;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.step-badge-rose {
  background: var(--accent-rose);
  color: #ffffff;
}

.step-badge-emerald {
  background: var(--accent-emerald);
  color: #ffffff;
}

.step-badge-amber {
  background: var(--accent-amber);
  color: #0a0f1d;
}

.server-hero-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
  position: relative;
  box-shadow: var(--shadow-md);
}

.server-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.quest-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 0.5rem;
}

.quest-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald));
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.deep-guide-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  scroll-margin-top: 80px;
}

.deep-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

/* Multi-Author Avatar Stack & Section Micro-Bylines */
.avatar-stack {
  display: inline-flex;
  align-items: center;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.avatar-stack-item {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  margin-left: -8px;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), z-index var(--transition-fast);
  position: relative;
  cursor: pointer;
  text-decoration: none;
}

.avatar-stack-item:last-child {
  margin-left: 0;
}

.avatar-stack-item:hover {
  transform: translateY(-2px) scale(1.15);
  z-index: 10;
  border-color: var(--accent-cyan);
}

.author-micro-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.author-micro-badge:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: var(--glow-cyan);
  transform: translateY(-1px);
}

.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 0.4rem;
}

.role-badge-lead {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.role-badge-collab {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}



