/* 全局样式 */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f8fafc;
  color: #1f2937;
  min-height: 100vh;
  line-height: 1.6;
}

/* 登录表单样式 */
.nl-auth-container {
  max-width: 420px;
  margin: 12vh auto;
  background: #fff;
  padding: 40px 32px;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid #e5e7eb;
}

.nl-title {
  margin: 0 0 24px 0;
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
}

.nl-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nl-form-inline {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 12px 0 20px;
}

.nl-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nl-field label {
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

.nl-field-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nl-input {
  width: 100%;
  height: 44px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 16px;
  background: #fff;
  transition: all 0.2s;
}

.nl-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.nl-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #3b82f6;
}

.nl-btn {
  height: 44px;
  border: none;
  border-radius: 8px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nl-btn-primary {
  background: #3b82f6;
  color: #fff;
}

.nl-btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.nl-btn-secondary {
  background: #6b7280;
  color: #fff;
}

.nl-btn-secondary:hover {
  background: #4b5563;
}

.nl-btn-danger {
  background: #dc2626;
  color: #fff;
}

.nl-btn-danger:hover {
  background: #b91c1c;
}

.nl-btn-info {
  background: #0ea5e9;
  color: #fff;
}

.nl-btn-info:hover {
  background: #0284c7;
}

.nl-btn-outline {
  background: transparent;
  color: #374151;
  border: 1px solid #d1d5db;
}

.nl-btn-outline:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

/* 主布局 */
.nl-layout {
  display: flex;
  min-height: 100vh;
}

/* 侧边栏保持原有设计方式 */
.nl-sidebar {
  width: 240px;
  background: #25272af6;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
}


/* Logo区域 */
.nl-logo {
  padding: 20px;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* 淡色半透明分割线 */
  display: flex;
  align-items: center;
  gap: 12px;
}

.nl-logo-image {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px;
  filter: brightness(1.1) contrast(1.05);
  transition: all 0.3s ease;
}

.nl-logo:hover .nl-logo-image {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.nl-menu {
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
}

.nl-menu a {
  padding: 12px 16px;
  border-radius: 8px;
  color: #cbd5e1;
  text-decoration: none;
  margin: 2px 0;
  transition: all 0.2s;
  font-weight: 500;
}

.nl-menu a:hover {
  background: #35383f;
  color: #fff;
  transform: translateX(4px);
}

.nl-menu a.active {
  background: #4c505cd8;
  color: #fff;
  box-shadow: 0 4px 8px rgba(59, 62, 70, 0.4);
}

.nl-user {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* 淡色半透明分割线 */
  color: #bfdbfe;
  margin-top: auto;
  font-size: 14px;
}

/* 内容区域 */
.nl-content {
  flex: 1;
  padding: 32px;
  background: #f8fafc;
}

/* 卡片组件 */
.nl-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  margin-bottom: 24px;
}

.nl-card-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.nl-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

/* 表格样式 */
.nl-table-wrap {
  overflow: auto;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.nl-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.nl-table th,
.nl-table td {
  padding: 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid #f3f4f6;
}

.nl-table thead th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nl-table tbody tr {
  transition: all 0.2s;
}

.nl-table tbody tr:hover {
  background: #f8fafc;
}

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

/* 消息提示 */
.nl-messages {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.nl-message {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-weight: 500;
}

/* 统计卡片 */
.nl-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.nl-stat-card {
  background: #1e40af;
  color: #fff;
  padding: 32px 40px;
  border-radius: 8px;
  border: none;
  min-width: 200px;
  flex: 1;
}

.nl-stat-title {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 8px;
}

.nl-stat-value {
  font-size: 28px;
  font-weight: 600;
  margin: 0;
}

/* 搜索框 */
.nl-search-container {
  margin-bottom: 24px;
}

.nl-search-input {
  width: 100%;
  max-width: 400px;
  height: 44px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 0 16px 0 44px;
  font-size: 14px;
  background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3e%3c/svg%3e") no-repeat 16px center;
  background-size: 20px;
}

.nl-search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 操作按钮组 */
.nl-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nl-btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 6px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nl-sidebar {
    width: 200px;
  }
  
  .nl-content {
    padding: 16px;
  }
  
  .nl-stats-grid {
    grid-template-columns: 1fr;
  }
} 

/* Lightbox styles */
.nl-lightbox-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.8);display:none;align-items:center;justify-content:center;z-index:9999;cursor:zoom-out}
.nl-lightbox-backdrop.active{display:flex}
.nl-lightbox-image{max-width:90vw;max-height:90vh;border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,.4);background:#000}
.nl-zoomable{cursor:zoom-in} 