/* ============ 顶部横向导航栏 · 样式 ============ */
body { padding-top: 62px; }

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 62px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(240, 65, 111, 0.12);
}

/* 品牌 */
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-dot { font-size: 21px; }

/* 导航项 */
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.topbar-nav::-webkit-scrollbar { display: none; }

.top-link {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink-light);
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: all .2s;
}
.top-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.top-link:hover { background: rgba(255, 92, 138, 0.08); color: var(--ink); }
.top-link.active {
  background: linear-gradient(120deg, var(--pink-soft), var(--pink));
  color: #fff;
  box-shadow: 0 4px 12px rgba(240, 65, 111, 0.25);
}
.top-link.active svg { stroke: #fff; }

/* 右侧登录状态 */
.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 92, 138, 0.08);
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s;
}
.topbar-user:hover { background: rgba(255, 92, 138, 0.16); }
.user-avatar {
  width: 22px;
  height: 22px;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

@media (max-width: 640px) {
  .topbar { padding: 0 12px; gap: 10px; }
  .brand-text { display: none; }
  .top-link { padding: 8px 11px; font-size: 13px; }
  .top-link svg { display: none; }
  .user-name { display: none; }
  .topbar-user { padding: 8px 11px; }
}

/* ============ 登录弹窗置顶（管理员标记的月报） ============ */
body.bxpop-open { overflow: hidden; }

.bxpop-mask {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  background: rgba(30, 10, 20, .5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: bxpopFade .22s ease both;
}
.bxpop-mask.bxpop-out { animation: bxpopFadeOut .22s ease both; }

.bxpop-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 22px;
  padding: 20px 20px 16px;
  box-shadow: 0 24px 60px rgba(80, 12, 32, .3);
  border: 1px solid #ffe0e9;
  animation: bxpopRise .26s cubic-bezier(.22, .9, .3, 1.2) both;
}

.bxpop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bxpop-kicker {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: #f0416f;
  background: #fff1f5;
  border-radius: 999px;
  padding: 5px 11px;
}
.bxpop-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(240, 65, 111, .1);
  color: #d92e5c;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
}
.bxpop-close:hover { background: rgba(240, 65, 111, .2); }

.bxpop-title {
  margin: 14px 0 8px;
  font-size: 18px;
  line-height: 1.45;
  color: #3f3136;
}

.bxpop-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.bxpop-meta {
  font-size: 11.5px;
  color: #a48b94;
  margin-bottom: 8px;
}
.bxpop-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: #6f5d63;
  white-space: pre-wrap;
  word-break: break-word;
}
.bxpop-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.bxpop-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.bxpop-link {
  display: inline-flex;
  margin-top: 14px;
  font-size: 12.5px;
  color: #fff;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8fab, #f0416f);
}
.bxpop-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #ffe0e9;
}
.bxpop-tip {
  font-size: 11.5px;
  color: #a48b94;
}
.bxpop-ok {
  margin-left: auto;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  color: #fff;
  padding: 9px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8fab, #f0416f);
  box-shadow: 0 6px 16px rgba(240, 65, 111, .24);
}

@keyframes bxpopFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bxpopFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes bxpopRise {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
