/* ============================================================
 * portal-header.css - 前台通用顶部导航（首页 + 登录页共用）
 * 由 common/js/portal-header.js 渲染内容；修改本文件两页同步生效。
 * 左侧品牌区：Logo（等比缩放、高度固定 50px）+ 网站名称，点击回首页。
 * ============================================================ */
.portal-header {
  position: relative;
  z-index: 2;
  height: 78px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  background: #fff;
  border-bottom: 1px solid var(--c-border);
}

.portal-brand { display: flex; align-items: center; gap: 12px; }
.portal-brand img {
  height: 50px;
  width: auto;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
}
.portal-brand-name {
  display: block;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .3px;
  white-space: nowrap;
  color: var(--c-text);
}
.portal-brand:hover .portal-brand-name { color: var(--c-primary); }

.portal-nav { display: flex; align-items: center; gap: 12px; }
#portal-login { min-width: 84px; }

@media (max-width: 600px) {
  .portal-header { padding: 0 16px; height: 68px; }
  .portal-brand { gap: 10px; }
  .portal-brand-name { font-size: 15px; }
}
