/* 后台管理 — 设计稿 3:7215 */

:root {
  --app-green: #139686;
  --text-primary: #303133;
  --text-secondary: #606266;
  --text-dark: #3d3d3d;
  --border-light: #e4e7ed;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  background: #e8f2f4;
  font-family: "Source Han Sans SC", "Source Han Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-primary);
  overflow: hidden;
}

.stage {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.root {
  position: relative;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: transparent;
  flex-shrink: 0;
  transform-origin: center center;
  display: flex;
  flex-direction: column;
}

.bg-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("assets/system-bg.jpg") center / cover no-repeat;
}

/* —— 顶栏 1920×74 —— */
.admin-top {
  position: relative;
  z-index: 2;
  flex: 0 0 74px;
  height: 74px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 12px 24px;
  background:
    linear-gradient(180deg, rgba(40, 128, 117, 0.1) 0%, rgba(255, 255, 255, 0) 100%),
    #ffffff;
}

.admin-brand {
  display: flex;
  align-items: center;
  width: 275.5px;
  height: 50px;
  flex-shrink: 0;
}

.admin-brand__logo {
  display: block;
  width: 275.5px;
  height: 50px;
  object-fit: contain;
  object-position: left center;
}

.admin-top__title {
  margin-left: 24px;
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
  color: var(--text-dark);
}

.admin-user {
  margin-left: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.admin-user__avatar {
  width: 40px;
  height: 40px;
  border-radius: 1000px;
  object-fit: cover;
  display: block;
}

.admin-user__name {
  font-size: 14px;
  line-height: 22px;
  color: var(--text-secondary);
}

/* —— 主体 —— */
.admin-body {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  height: 1006px;
  display: flex;
  flex-direction: row;
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid var(--border-light);
}

/* 一级侧栏 112 */
.admin-rail {
  flex: 0 0 112px;
  width: 112px;
  background: #f5fcfb;
  border-right: 1px solid rgba(83, 176, 164, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.admin-rail__item {
  width: 80px;
  height: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  line-height: 22px;
  color: var(--text-secondary);
}

.admin-rail__item.is-active {
  background: #dcf4f1;
  color: var(--app-green);
}

.admin-rail__icon {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

/* 二级侧栏 200 */
.admin-side {
  flex: 0 0 200px;
  width: 200px;
  background: #ffffff;
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 16px;
}

.admin-side__title {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--text-dark);
}

.admin-side__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-side__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  line-height: 22px;
  color: var(--text-secondary);
  text-align: left;
}

.admin-side__item.is-active {
  color: var(--app-green);
}

.admin-side__icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-side__icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.admin-side__item.is-active .admin-side__icon path {
  fill: var(--app-green);
}

/* 主内容 + 右侧空栏（稿面空白容器） */
.admin-main {
  flex: 1 1 auto;
  min-width: 0;
  background: #ffffff;
  border-right: 1px solid var(--border-light);
}

.admin-panel {
  flex: 0 0 399px;
  width: 399px;
  background: #ffffff;
}
