/* ================= 导航:右上角固定「三条杠 + 我的」+ 全屏抽屉 =================
   站主要求:
   ① 三条杠(展开/收起)与「我的」全程固定在右上角、并列排布;
   ② 顶部重复的 tab 列表隐藏,导航只在抽屉里;
   ③ 抽屉手机上铺满整屏,桌面从右侧滑出,内部可滚动。 */

/* ---- 右上角固定控件组:三条杠 + 头像(我的) ---- */
.top-fixed {
  position: fixed; top: 12px; right: 14px; z-index: 70;
  display: flex; align-items: center; gap: 8px;
}
.top-fixed .nav-burger,
.top-fixed .top-avatar-btn {
  width: 40px; height: 40px; flex: none; padding: 0; border-radius: 12px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(18, 16, 14, .82); border: 1px solid rgba(255, 255, 255, .16);
  color: #f0e6d8; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); backdrop-filter: blur(8px);
  transition: border-color .15s ease, transform .12s ease, background .15s ease;
}
.top-fixed .top-avatar-btn { padding: 0; overflow: hidden; }
.top-fixed .nav-burger:hover,
.top-fixed .top-avatar-btn:hover { border-color: var(--brand); color: #fff3e2; background: rgba(28, 24, 20, .92); }
.top-fixed .top-avatar-btn:active { transform: scale(.97); }
.top-fixed .top-avatar { width: 100%; height: 100%; border-radius: 11px; object-fit: cover; }
.top-fixed .top-avatar.hidden { display: none !important; }
.top-fixed .top-avatar-ph { width: 22px; height: 22px; border-radius: 6px; }
.top-fixed .top-avatar-btn.is-guest { opacity: .92; }

/* 三条杠图标(三根线,竖排;HTML 里就是 3 个 span) */
.top-fixed .nav-burger { flex-direction: column; justify-content: center; gap: 4px; }
.nav-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.nav-burger span::before, .nav-burger span::after { content: none; }

/* ---- 遮罩 + 抽屉 ---- */
.nav-mask {
  position: fixed; inset: 0; z-index: 75; opacity: 0; pointer-events: none;
  background: rgba(0, 0, 0, .58); backdrop-filter: blur(2px); transition: opacity .22s ease;
}
body.nav-open .nav-mask { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }

.nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 76;
  width: min(400px, 92vw); height: 100dvh;
  display: flex; flex-direction: column;
  background: rgba(14, 12, 10, .985); border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(0, 0, 0, .62);
  transform: translateX(102%); transition: transform .26s cubic-bezier(.2, .8, .2, 1);
  visibility: hidden;
}
.nav-drawer.open { transform: none; visibility: visible; }
.nav-drawer-head {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
}
.nav-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 17px; }
.nav-brand img { border-radius: 7px; }
.nav-brand em {
  font-style: normal; font-size: 10.5px; font-weight: 800; color: #17120e; letter-spacing: .06em;
  background: linear-gradient(135deg, #f3ece2, #cfbfae); padding: 1px 7px; border-radius: 999px;
}
.nav-close {
  margin-left: auto; width: 34px; height: 34px; border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--ink-2);
}
.nav-close:hover { color: var(--ink); border-color: var(--brand-line); }
.nav-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 14px 26px; -webkit-overflow-scrolling: touch; }
.nav-sec { margin: 16px 2px 8px; font-size: 11px; letter-spacing: .16em; color: var(--ink-3); }
.nav-list { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 9px 12px; border-radius: 11px; cursor: pointer; text-align: left;
  background: transparent; border: 1px solid transparent; color: var(--ink-2);
}
.nav-item b { font-size: 14.5px; color: var(--ink); font-weight: 700; }
.nav-item span { font-size: 11.5px; color: var(--ink-3); line-height: 1.4; }
.nav-item:hover { background: rgba(255, 255, 255, .04); border-color: var(--line); }
.nav-item.active { background: rgba(201, 133, 90, .14); border-color: var(--brand-line); }
.nav-item.active b { color: #fff3e2; }
.nav-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nav-chip {
  padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: 12.5px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--ink-2);
}
.nav-chip:hover { border-color: var(--brand-line); color: var(--ink); }
.nav-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.nav-link {
  padding: 7px 13px; border-radius: 9px; cursor: pointer; font-size: 12.5px; text-decoration: none;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line); color: var(--ink-2);
}
.nav-link:hover { border-color: var(--brand-line); color: var(--ink); }
.nav-settings { padding: 4px 2px 0; }
.nav-settings-title { font-size: 11px; color: var(--ink-3); margin-bottom: 6px; }
.nav-foot { margin-top: 24px; font-size: 11px; line-height: 1.7; color: var(--ink-3); border-top: 1px dashed var(--line); padding-top: 12px; }

/* 抽屉里的底色切换(复用 entry.js 的 bgSwitchHtml) */
.set-bg { display: flex; gap: 6px; }
.set-bg-btn { flex: 1; min-height: 36px; border-radius: 9px; cursor: pointer; font-size: 12.5px; color: var(--ink-2);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.set-bg-btn.on { border-color: var(--brand); color: #fff3e2; background: rgba(201, 133, 90, .16); }

/* 顶栏里那排重复 tab 全部隐藏(导航只在抽屉里) */
body.has-burger .topbar .tabs { display: none !important; }

/* 站主要求的点赞图标 */
.post-like { display: inline-flex; align-items: center; gap: 5px; }
.post-like svg { width: 16px; height: 16px; }
.post-like.on svg { fill: currentColor; }

@media (max-width: 720px) {
  .top-fixed { top: 8px; right: 10px; gap: 6px; }
  .top-fixed .nav-burger, .top-fixed .top-avatar-btn { width: 36px; height: 36px; border-radius: 11px; }
  /* 手机上抽屉铺满整屏 */
  .nav-drawer { width: 100vw; max-width: 100vw; border-left: none; }
  .nav-item { padding: 11px 12px; }
  .nav-item b { font-size: 15.5px; }
  .nav-item span { font-size: 12px; }
}
