/* ==========================================================
   页面框架：顶部深灰导航条（系统名 · 横向菜单 · 当前用户）+ 纸面内容区
   ========================================================== */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--graphite); color: var(--graphite-ink);
}
.topbar-inner {
  display: flex; align-items: stretch; gap: 28px; height: var(--bar-h);
  max-width: 1400px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wordmark { display: flex; align-items: center; gap: 10px; color: #fff; white-space: nowrap; }
.wordmark:hover { text-decoration: none; }
.wordmark-plate {                 /* 设备铭牌式的系统标识 */
  font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .06em;
  padding: 1px 6px; border: 1.5px solid var(--yellow); color: var(--yellow); line-height: 1.3;
}
.wordmark-name { font-size: 15px; font-weight: 600; letter-spacing: .04em; }

.nav { display: flex; align-items: stretch; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 6px; padding: 0 12px;
  color: var(--graphite-ink); white-space: nowrap; font-size: 14px;
}
.nav a:hover { color: #fff; text-decoration: none; background: var(--graphite-2); }
.nav a.active { color: #fff; }
.nav a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; background: var(--yellow); }
.nav .count {
  font-family: var(--font-display); font-weight: 600; font-size: 13px; line-height: 18px;
  min-width: 18px; padding: 0 5px; text-align: center; color: var(--graphite); background: var(--yellow);
}

.who { margin-left: auto; display: flex; align-items: center; gap: 14px; white-space: nowrap; position: relative; }
.who-btn {
  display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 4px;
  border: 0; background: none; color: #fff; cursor: pointer;
}
.who-btn .role { color: var(--graphite-ink); font-size: 12px; }
.who-btn .icon { color: var(--graphite-ink); }
.menu {
  position: absolute; right: 0; top: 100%; min-width: 180px; padding: 4px 0; display: none;
  background: var(--sheet); color: var(--ink); border: 1px solid var(--rule); box-shadow: 0 8px 24px rgba(28, 34, 40, .14);
}
.menu.open { display: block; }
.menu .menu-head { padding: 8px 14px; border-bottom: 1px solid var(--rule-soft); font-size: 12px; color: var(--ink-3); }
.menu button {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 9px 14px;
  border: 0; background: none; cursor: pointer; text-align: left;
}
.menu button:hover { background: var(--sheet-alt); }
.menu .danger { color: var(--red); }

/* ---------- 内容区 ---------- */
.content {
  max-width: 1400px; margin: 0 auto; width: 100%;
  padding-block: 22px 48px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: 18px; border-bottom: 2px solid var(--ink);
}
.page-head h1 { font-size: 22px; letter-spacing: .02em; }
.page-head p { color: var(--ink-2); margin-top: 2px; font-size: 13px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.split > *, .grid > * { min-width: 0; }

@media (max-width: 1080px) {
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .topbar-inner { gap: 12px; }
  .wordmark-name, .who-btn .role { display: none; }
}
