.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: var(--sidebar);
  padding: 22px 14px 20px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 4px 30px;
  padding: 2px;
}

/* 金色渐变方块徽标（对应 demo .brand-ico） */
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: var(--grad);
  color: var(--on-gold);
  font-size: 17px;
  font-weight: 900;
}

.brand-name { font-size: 17px; font-weight: 900; line-height: 1.2; letter-spacing: 0; }
.brand-note { color: var(--muted); font-size: 10.5px; letter-spacing: .06em; }

.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 11px;
  color: var(--muted);
  font-size: 13.5px;
  transition: all .25s;
}
.nav-link:hover { color: var(--paper); background: rgba(255, 255, 255, .06); }
/* 激活项铺金色渐变、深色文字（对应 demo .nav-item.active） */
.nav-link.active { color: var(--on-gold); background: var(--grad); font-weight: 700; }
.nav-icon { width: 18px; text-align: center; color: currentColor; opacity: .85; }

.sidebar-footer { margin-top: auto; }
.user-chip { padding: 12px 6px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }

.main-content { min-height: 100vh; margin-left: var(--sidebar); }
.page { width: min(100%, calc(var(--content) + 64px)); margin: 0 auto; padding: 56px 30px 80px; }
.page-header { margin-bottom: 30px; }

.mobile-bar { display: none; }

@media (max-width: 760px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .page { padding: 30px 15px calc(116px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    position: fixed;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    padding: 8px;
    border: 1px solid var(--line-gold);
    border-radius: 18px;
    background: rgba(13, 12, 18, .96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }
  .mobile-link { display: grid; place-items: center; min-height: 46px; border-radius: 12px; color: var(--muted); font-size: 11px; }
  .mobile-link.active { color: var(--on-gold); background: var(--grad); font-weight: 700; }
}
