/* 简单侧栏 nav 样式 */
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #2a2a2a;
  transition: background-color .15s ease, color .15s ease;
}
.nav-item:hover {
  background: #f5f5f4;
}
.nav-item.active {
  background: #0a0a0a;
  color: #fff;
}
.nav-item.active .dot {
  background: #fff;
}
.nav-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #d4d4d4;
}

/* 输入框/按钮的小润色 */
.field {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d4d4d4;
  border-radius: 9px;
  outline: none;
  font-size: 13px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field:focus {
  border-color: #0a0a0a;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary {
  background: #0a0a0a;
  color: #fff;
}
.btn-primary:hover {
  background: #2a2a2a;
}
.btn-ghost {
  background: transparent;
  color: #2a2a2a;
  border-color: #d4d4d4;
}
.btn-ghost:hover {
  border-color: #0a0a0a;
}
.btn-danger {
  background: #fff;
  color: #b91c1c;
  border-color: #fecaca;
}
.btn-danger:hover {
  background: #fef2f2;
}

/* table */
.t {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px -2px rgba(0,0,0,0.06), 0 1px 4px -1px rgba(0,0,0,0.04);
}
.t thead th {
  text-align: left;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #6b6b6b;
  background: #fafafa;
  border-bottom: 1px solid #efefef;
}
.t tbody td {
  padding: 12px 14px;
  font-size: 13px;
  border-bottom: 1px solid #f5f5f4;
  vertical-align: middle;
}
.t tbody tr:last-child td {
  border-bottom: none;
}
.t tbody tr:hover {
  background: #fafafa;
}

/* 图片缩略 */
.thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: #f5f5f4;
}

/* 标签 chip */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 9999px;
  font-size: 11px;
  background: #f5f5f4;
  color: #2a2a2a;
}
.chip-green { background: #ecfdf5; color: #047857; }
.chip-red   { background: #fef2f2; color: #b91c1c; }
.chip-amber { background: #fff7ed; color: #c2410c; }

/* 上传区 */
.upload-zone {
  border: 1.5px dashed #d4d4d4;
  border-radius: 14px;
  padding: 32px;
  text-align: center;
  background: #fafafa;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.upload-zone:hover {
  border-color: #0a0a0a;
  background: #fff;
}
.upload-zone.drag {
  border-color: #0a0a0a;
  background: #fff;
}

/* 模态 */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}
.modal-mask.open {
  display: flex;
}
.modal-card {
  width: min(560px, calc(100vw - 32px));
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.3);
}
