/* ===== 共享顶栏（被 /app/header.js 渲染） ===== */
.app-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px; background: #fff; border-bottom: 1px solid #ececec;
  position: sticky; top: 0; z-index: 40;
}
.hd-left { display: flex; align-items: center; gap: 18px; min-width: 0; }
.hd-brand {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #111;
  font-weight: 800; font-size: 17px; letter-spacing: -0.3px;
}
.hd-logo {
  width: 30px; height: 30px; border-radius: 8px; background: #111; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800;
  overflow: hidden;
}
.hd-logo.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hd-brand-name { white-space: nowrap; }

/* 板块导航（向左增加：水平排列，未来新增板块自然向右追加） */
.hd-nav { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; overflow-x: auto; }
.hd-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px; text-decoration: none;
  color: #555; font-size: 14px; font-weight: 600;
  white-space: nowrap; transition: background .15s, color .15s;
}
.hd-tab:hover { background: #f5f5f7; color: #111; }
.hd-tab.active { background: #111; color: #fff; }
.hd-tab .hd-ico { font-size: 14px; line-height: 1; }

.hd-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.hd-user {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; background: #f5f5f7; border: 1px solid #eee;
  border-radius: 999px; font-size: 13px; color: #333; max-width: 180px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hd-uc {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; background: #111; color: #fff; border-radius: 999px;
  font-size: 13px; font-weight: 600; text-decoration: none;
}
.hd-uc:hover { background: #333; }
@media (max-width: 720px) {
  .app-header { padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
  .hd-brand-name { display: none; }
  .hd-user { max-width: 120px; }
}