/* Web 后台侧栏 — 参考 Niushop：白底、一级折叠、蓝色选中 */
.app {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #fff;
  color: #333;
  border-right: 1px solid #e8e8e8;
  display: flex;
  flex-direction: column;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 14px;
  border-bottom: 1px solid #f0f0f0;
}

.admin-brand__logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1890ff, #096dd9);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-brand__name {
  font-size: 15px;
  font-weight: 600;
  color: #262626;
  line-height: 1.25;
}

.admin-brand__sub {
  font-size: 11px;
  color: #8c8c8c;
  margin-top: 2px;
}

.admin-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 16px;
  font-size: 13px;
}

.admin-nav details {
  border: none;
}

.admin-nav summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.admin-nav summary::-webkit-details-marker {
  display: none;
}

.nav-fold__title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: #595959;
  font-weight: 500;
  position: relative;
}

.nav-fold__title::after {
  content: "›";
  margin-left: auto;
  font-size: 14px;
  color: #bfbfbf;
  transform: rotate(90deg);
  transition: transform 0.2s;
}

details.nav-fold[open] > .nav-fold__title::after {
  transform: rotate(-90deg);
}

.nav-fold__title:hover {
  color: #1890ff;
  background: #fafafa;
}

.nav-fold__body {
  padding-bottom: 4px;
}

.nav-fold--nested > .nav-fold__title {
  padding-left: 28px;
  font-weight: 400;
  font-size: 12px;
  color: #8c8c8c;
}

.nav-fold--nested > .nav-fold__title::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d9d9d9;
  margin-right: 4px;
}

.nav-leaf {
  display: block;
  padding: 8px 14px 8px 28px;
  color: #595959;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.nav-leaf:hover {
  color: #1890ff;
  background: #f5f5f5;
}

.nav-leaf--deep {
  padding-left: 40px;
  font-size: 12px;
}

.nav-leaf.active {
  color: #1890ff;
  background: #e6f7ff;
  border-left-color: #1890ff;
  font-weight: 500;
}

.nav-leaf--home {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-weight: 500;
}

.nav-leaf--soon {
  color: #bfbfbf;
  cursor: default;
  pointer-events: none;
}

.nav-ico {
  width: 18px;
  text-align: center;
  font-size: 14px;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.header {
  background: #fff;
  padding: 0 20px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
}

.header-left {
  font-size: 13px;
  color: #666;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #333;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background: #e6f7ff;
  color: #1890ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.content {
  flex: 1;
  padding: 20px;
}

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