body {
  font-family: "Noto Sans SC", sans-serif;
  background: linear-gradient(135deg, #fff5f5 0%, #fffbf2 50%, #f5f7ff 100%);
  color: #4b5563;
}

.font-mono {
  font-family: "JetBrains Mono", monospace;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.04);
}

@keyframes blue-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
    box-shadow: 0 0 4px rgba(34, 211, 238, 0.4);
  }

  50% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.8);
  }
}

.breathe-dot {
  background-color: #22d3ee;
  animation: blue-breathe 2s infinite ease-in-out;
}

.hero-warm-smooth {
  background: linear-gradient(110deg, #ff9d66 0%, #ff5e62 100%) !important;
  box-shadow: 0 10px 25px rgba(255, 94, 98, 0.2);
}

.app-grid {
  display: grid;
  grid-template-columns: 168px 1fr;
  height: 100vh;
  padding: 16px;
  gap: 16px;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.knowledge-compact-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  padding: 14px;
}

.knowledge-compact-card:hover {
  transform: translateY(-4px);
  border-color: #fb923c;
  box-shadow: 0 10px 25px rgba(251, 146, 60, 0.1);
  background: white;
}

.knowledge-compact-head {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.knowledge-compact-cover {
  width: 144px;
  min-width: 144px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.08);
}

.knowledge-compact-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.knowledge-compact-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.knowledge-compact-line {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.knowledge-compact-label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.08em;
}

.knowledge-compact-value {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
  color: #1e293b;
  word-break: break-all;
}

.cat-btn {
  transition: all 0.2s;
  white-space: nowrap;
}

.cat-btn.active {
  background: #6366f1;
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.modal-active {
  display: flex !important;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.knowledge-modal-card {
  background: #ffffff;
  backdrop-filter: none;
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.knowledge-modal-secondary-btn {
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.knowledge-modal-secondary-btn:hover {
  color: #475569;
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.knowledge-loading-card,
.knowledge-empty-card {
  min-height: 160px;
  display: flex;
  align-items: center;
}

.knowledge-compact-body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.knowledge-compact-title {
  font-size: 15px;
  line-height: 1.45;
  font-weight: 900;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.knowledge-compact-summary {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.7;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.knowledge-compact-foot {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.knowledge-compact-joiners {
  font-size: 12px;
  font-weight: 900;
  color: #94a3b8;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.knowledge-compact-hint {
  font-size: 12px;
  font-weight: 900;
  color: #6366f1;
  letter-spacing: 0.1em;
}

.knowledge-load-more-state {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0 8px;
  text-align: center;
}

.knowledge-load-more-loading,
.knowledge-load-more-end {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.knowledge-load-more-loading {
  color: #64748b;
}

.knowledge-load-more-end {
  color: #94a3b8;
}

@media (max-width: 1280px) {
  .knowledge-compact-head {
    gap: 10px;
  }

  .knowledge-compact-cover {
    width: 88px;
    min-width: 88px;
    height: 118px;
  }
}

@keyframes popIn {
  from {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}
