/* 基础样式 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow: hidden;
}

/* 背景装饰 */
.bg-decoration {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(0, 180, 216, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(0, 100, 150, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-primary) 100%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(rgba(0, 180, 216, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 180, 216, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* 主布局 */
.layout {
  display: flex;
  height: 100vh;
  position: relative;
  z-index: 1;
}

/* 组件注入包裹层：#app(.layout) 为 flex 行容器，#app-content 需占满剩余空间并自身作为 flex 行容器，
   使注入的 .sidebar 与 .main-content 横向排列；否则二者在普通 block 容器中纵向堆叠，主内容被挤到视口外 */
#app-content {
  flex: 1;
  display: flex;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}
