/* ===== 公共顶栏 (未登录/已登录通用) ===== */
.pub-hdr{height:100px;background:#fff;border-bottom:1px solid #e8ecf1;display:flex!important;align-items:center;padding:0 40px;box-shadow:0 1px 4px rgba(0,0,0,.04);position:relative;z-index:1000;width:100%}
.pub-hdr-logo{display:flex!important;align-items:center;gap:14px;text-decoration:none!important;flex-shrink:0}
.pub-hdr-logo img{width:52px;height:52px;object-fit:contain}
.pub-hdr-logo-fb{width:52px;height:52px;border-radius:14px;background:linear-gradient(135deg,#6366f1,#818cf8);display:flex;align-items:center;justify-content:center;color:#fff;font-size:22px;font-weight:700;flex-shrink:0;box-shadow:0 2px 8px rgba(99,102,241,.18)}
.pub-hdr-logo span{font-size:20px;font-weight:700;color:#1e293b!important;white-space:nowrap;letter-spacing:.5px}
.pub-hdr-space{flex:1}
.pub-hdr-actions{display:flex!important;align-items:center;gap:10px;flex-shrink:0}

/* 登录/注册按钮 */
.pub-btn-login,.pub-btn-reg{display:inline-flex!important;align-items:center;gap:6px;padding:8px 22px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;transition:all .15s;text-decoration:none!important;border:none!important;font-family:inherit;line-height:1.3}
.pub-btn-login{background:#f1f5f9;color:#475569!important}
.pub-btn-login:hover{background:#e2e8f0;color:#1e293b!important}
.pub-btn-reg{background:linear-gradient(135deg,#6366f1,#818cf8);color:#fff!important;box-shadow:0 2px 8px rgba(99,102,241,.2)}
.pub-btn-reg:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(99,102,241,.3)}

/* 已登录用户 */
.pub-user{display:flex!important;align-items:center;gap:10px;padding:7px 16px 7px 7px;border-radius:40px;background:#f8fafc;border:1px solid #e2e8f0;cursor:default}
.pub-user-avatar{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,#6366f1,#a78bfa);display:flex;align-items:center;justify-content:center;color:#fff;font-size:15px;font-weight:700;flex-shrink:0}
.pub-user-name{font-size:14px;font-weight:600;color:#1e293b;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pub-user-class{font-size:12px;color:#6b7280;white-space:nowrap}
