html,
body,
#adminRoot {
  min-height: 100vh;
}

body {
  margin: 0;
  background: #f5f7fa;
  color: #1f2329;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.admin-loading,
.admin-fallback {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4e5969;
}

.admin-login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, #eef4ff 0, #f5f7fa 60%);
}

.admin-login-card {
  width: min(420px, 100%);
  box-shadow: 0 18px 48px rgba(22, 93, 255, .12);
}

.ant-layout {
  min-height: 100vh;
}

.admin-logo {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
}

.admin-header {
  height: auto;
  min-height: 64px;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid #edf0f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-content {
  padding: 20px 24px 32px;
}

.admin-page-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
}

.admin-page-desc {
  margin-top: 4px;
  color: #86909c;
  font-size: 13px;
}

.admin-toolbar {
  margin-bottom: 16px;
}

.admin-thumb {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #edf0f5;
  background: #f7f8fa;
}

.admin-table-text {
  max-width: 320px;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.admin-category-list {
  min-height: 360px;
  border-right: 1px solid #edf0f5;
  padding-right: 16px;
}

.admin-category-item {
  padding: 9px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-category-item:hover {
  background: #f2f6ff;
}

.admin-category-item.active {
  background: #e8f3ff;
  color: #1677ff;
  font-weight: 600;
}

.admin-child-category {
  padding-left: 24px;
}

@media (max-width: 900px) {
  .admin-header {
    display: block;
  }

  .admin-header .ant-btn {
    margin-top: 12px;
  }

  .admin-content {
    padding: 16px;
  }
}
