/* =========
   NexusHub 深色毛玻璃主题（与 NexusNote 一致）
   ========= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    system-ui, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  background: radial-gradient(circle at top left, #1e293b 0, #020617 45%, #000 100%);
  color: #f9fafb;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.nx-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nx-blur-surface {
  background: radial-gradient(circle at top left, rgba(148, 163, 253, 0.18), rgba(15, 23, 42, 0.9));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(148, 163, 253, 0.35);
}

.nx-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.95),
    rgba(2, 6, 23, 0.86),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 253, 0.25);
}

.nx-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nx-header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nx-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nx-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: conic-gradient(
    from 180deg,
    #a855f7,
    #6366f1,
    #22d3ee,
    #a855f7
  );
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0b1120;
  font-size: 0.9rem;
  font-weight: 700;
}

.nx-logo-text-main {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.nx-logo-text-sub {
  font-size: 0.8rem;
  color: #9ca3af;
}

.nx-main {
  flex: 1;
  padding: 1.25rem 0 1.75rem;
}

.nx-panel {
  border-radius: 1.1rem;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(30, 64, 175, 0.5);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.nx-panel-header {
  padding: 0.8rem 1rem 0.5rem;
  border-bottom: 1px solid rgba(30, 64, 175, 0.45);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.nx-panel-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #e5e7eb;
}

.nx-panel-sub {
  font-size: 0.8rem;
  color: #9ca3af;
}

.nx-panel-body {
  padding: 0.7rem 0.8rem 0.9rem;
  overflow: auto;
}

.nx-btn {
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    background-color 0.12s ease-out, border-color 0.12s ease-out;
}

.nx-btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border-color: rgba(167, 139, 250, 0.9);
  color: #f9fafb;
  box-shadow: 0 14px 40px rgba(79, 70, 229, 0.65);
}

.nx-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 55px rgba(79, 70, 229, 0.9);
}

.nx-btn-ghost {
  background-color: rgba(15, 23, 42, 0.6);
  border-color: rgba(148, 163, 253, 0.35);
  color: #e5e7eb;
}

.nx-btn-ghost:hover {
  background-color: rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.nx-btn-sm {
  padding: 0.32rem 0.9rem;
  font-size: 0.78rem;
}

.nx-table-wrap {
  overflow-x: auto;
}

.nx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.nx-table th,
.nx-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(55, 65, 81, 0.6);
  color: #e5e7eb;
}

.nx-table th {
  color: #9ca3af;
  font-weight: 500;
}

.nx-table tr:hover td {
  background: rgba(30, 64, 175, 0.2);
}

.nx-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 253, 0.6);
  color: #c4b5fd;
}

.nx-pill.note { border-color: rgba(34, 211, 238, 0.6); color: #22d3ee; }
.nx-pill.ai   { border-color: rgba(167, 139, 250, 0.6); color: #c4b5fd; }
.nx-pill.flow { border-color: rgba(52, 211, 153, 0.6); color: #34d399; }
.nx-pill.done { border-color: rgba(52, 211, 153, 0.8); color: #34d399; }
.nx-pill.run  { border-color: rgba(251, 191, 36, 0.8); color: #fbbf24; }
.nx-pill.fail { border-color: rgba(248, 113, 113, 0.8); color: #f87171; }

.nx-footer {
  padding: 0.6rem 1.5rem 0.8rem;
  font-size: 0.72rem;
  color: #6b7280;
  text-align: right;
}

@media (max-width: 840px) {
  .nx-panel {
    min-height: 160px;
  }
}
