/* 白医云中心端 — 布局壳层（与 frontend-admin AdminLayout 一致，index.html 直链） */

:root {
  --page-bg: #f5f7fb;
  --primary: #2563eb;
  --primary-soft: #eff6ff;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--page-bg) !important;
}

#app {
  height: 100vh !important;
  min-height: 100vh !important;
  background: var(--page-bg) !important;
}

#app.app--index .app-main {
  height: 100vh;
  overflow: hidden;
}

.app-shell {
  height: 100vh;
  overflow: hidden;
  display: flex;
  background: #f5f7fb;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.sidebar {
  width: 260px;
  flex: 0 0 260px;
  height: 100vh;
  padding: 18px 14px;
  background: #ffffff;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-right: 1px solid #e5e7eb;
  overflow: hidden;
  box-sizing: border-box;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 16px;
  border-bottom: 1px solid #edf2f7;
  flex-shrink: 0;
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: #2563eb;
  font-size: 18px;
  font-weight: 800;
  border: 1px solid #dbeafe;
  flex-shrink: 0;
}

.brand-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.sidebar-nav {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.menu-group { display: flex; flex-direction: column; gap: 8px; }

.menu-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #334155;
  font: inherit;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-parent:hover {
  background: #f8fafc;
  border-color: #dbeafe;
  color: #2563eb;
}

.menu-parent.active {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
  font-weight: 700;
}

.menu-parent__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.menu-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  flex: 0 0 24px;
}

.menu-parent.active .menu-icon {
  background: #dbeafe;
  color: #2563eb;
}

.menu-arrow {
  font-size: 18px;
  line-height: 1;
  color: #cbd5e1;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
}

.menu-arrow.open { transform: rotate(90deg); }

.menu-children {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 10px;
  border-left: 1px solid #e5e7eb;
  margin-left: 12px;
}

.menu-children a {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  color: #475569;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid transparent;
  font-size: 13px;
  transition: all 0.2s ease;
}

.menu-children a:hover {
  background: #f1f5f9;
  color: #2563eb;
}

.menu-children a.active {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
  font-weight: 700;
}

.sidebar-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 6px;
}

.btn-ghost {
  width: 100%;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #334155;
  border-radius: 12px;
  padding: 11px 14px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
}

.btn-ghost:hover {
  background: #f8fafc;
  border-color: #dbeafe;
  color: #2563eb;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
}

.topbar {
  flex-shrink: 0;
  height: 70px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e7eb;
}

.topbar-kicker {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.topbar-title {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-pill {
  padding: 9px 14px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
  border: 1px solid #dbeafe;
  cursor: pointer;
  font-size: 13px;
}

.content {
  flex: 1;
  min-height: 0;
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
}

.content.content--dashboard {
  overflow: hidden;
  padding: 0;
}

.dashboard {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  background: linear-gradient(120deg, #eef4ff 0%, #ffffff 42%, #f7f8fa 100%);
}

.dashboard-visual {
  flex: 1.15;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 56px);
}

.dashboard-visual__img {
  display: block;
  width: 100%;
  max-width: min(520px, 100%);
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.dashboard-copy {
  flex: 0.85;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 3vw, 48px) clamp(28px, 4vw, 64px);
}

.dashboard-tag {
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #2563eb;
}

.dashboard-title {
  margin: 0 0 20px;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: #2563eb;
}

.dashboard-line {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: #6b7280;
}

.dashboard-line + .dashboard-line {
  margin-top: 8px;
}

@media (max-width: 1100px) {
  .sidebar { width: 240px; flex-basis: 240px; }
}

@media (max-width: 900px) {
  .dashboard { flex-direction: column; }
  .dashboard-copy { align-items: center; text-align: center; }
}
