/* ============================================================
 * 轻论坛 liteBBS 主题样式
 * 风格：极简黑白 · 固定毛玻璃顶栏 · 单列信息流
 * 作者：kuakeba.cn
 * ============================================================ */

:root {
  --lb-primary: #111111;
  --lb-bg: #f5f6f7;
  --lb-card: #ffffff;
  --lb-ink: #111318;
  --lb-ink-2: #4b5563;
  --lb-ink-3: #9ca3af;
  --lb-line: rgba(17, 19, 24, 0.08);
  --lb-radius: 14px;
  --lb-header-h: 64px;
  --lb-amber: #fff7e8;
  --lb-amber-ink: #b45309;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

.lb-body {
  margin: 0;
  background: var(--lb-bg);
  color: var(--lb-ink);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.lb-body a { color: inherit; text-decoration: none; }
.lb-body img { max-width: 100%; }
.lb-body button { font-family: inherit; }

/* ============ 顶部导航栏（全端固定） ============ */
.lb-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: var(--lb-header-h);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--lb-line);
}
.lb-header-inner {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.lb-header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
/* 顶部自定义菜单（搜索框左侧） */
.lb-header-nav { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.lb-header-nav a { font-size: 13.5px; color: var(--lb-ink-2); white-space: nowrap; transition: color 0.15s; }
.lb-header-nav a:hover { color: var(--lb-ink); }
.lb-header-nav a.is-active { color: var(--lb-ink); font-weight: 600; }
.lb-mobile-btn {
  display: none;
  width: 38px; height: 38px; flex-shrink: 0;
  border: 0; background: none; cursor: pointer;
  font-size: 22px; color: var(--lb-ink);
  border-radius: 9px;
  align-items: center; justify-content: center;
}
.lb-mobile-btn:hover { background: rgba(17, 19, 24, 0.05); }

/* ============ 三栏骨架 ============ */
.lb-shell {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(var(--lb-header-h) + 24px) 24px 48px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

/* ============ 左侧导航栏 ============ */
.lb-sidenav {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--lb-header-h) + 24px);
  max-height: calc(100vh - var(--lb-header-h) - 48px);
  overflow-y: auto;
  scrollbar-width: none;
}
.lb-sidenav::-webkit-scrollbar { display: none; }

.lb-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lb-logo-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--lb-primary);
  color: #fff;
  font-size: 16px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.lb-logo-img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; }
.lb-logo-text { font-size: 17px; font-weight: 700; letter-spacing: 0.2px; }

.lb-nav { display: flex; flex-direction: column; gap: 2px; }
.lb-nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--lb-ink-2);
  transition: background 0.15s, color 0.15s;
}
.lb-nav-link i { font-size: 19px; }
.lb-nav-link:hover { background: rgba(17, 19, 24, 0.05); color: var(--lb-ink); }
.lb-nav-link.is-active { color: var(--lb-ink); font-weight: 700; background: rgba(17, 19, 24, 0.06); }
.lb-nav-sep { height: 1px; margin: 10px 14px; background: var(--lb-line); }

.lb-search {
  flex: 1 1 auto;
  max-width: 340px;
  display: flex; align-items: center; gap: 8px;
  height: 40px;
  padding: 0 14px;
  background: var(--lb-bg);
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--lb-ink-3);
  transition: border-color 0.15s, background 0.15s;
}
.lb-search:focus-within { background: #fff; border-color: var(--lb-ink); color: var(--lb-ink); }
.lb-search input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font-size: 14px; color: var(--lb-ink);
}

/* 按钮 */
.lb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 18px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.lb-btn-primary { background: #fff; color: var(--lb-ink); border-color: var(--lb-ink); }
.lb-btn-primary:hover { background: var(--lb-bg); }
.lb-btn-ghost { border-color: var(--lb-line); color: var(--lb-ink); background: #fff; }
.lb-btn-ghost:hover { border-color: var(--lb-ink); }
.lb-btn-line { border-color: var(--lb-line); color: var(--lb-ink-2); background: #fff; }
.lb-btn-line:hover { border-color: var(--lb-ink); color: var(--lb-ink); }
.lb-btn-line.on, .lb-follow.on { background: var(--lb-bg); color: var(--lb-ink-3); }
.lb-btn-sm { height: 30px; padding: 0 14px; font-size: 13px; }
.lb-btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* 用户菜单（顶栏右侧，向下弹出） */
.lb-user { position: relative; }
.lb-user-trigger {
  display: flex; align-items: center; gap: 8px;
  background: none; border: 0; cursor: pointer;
  padding: 4px 6px; border-radius: 999px;
  color: var(--lb-ink);
}
.lb-user-trigger:hover { background: rgba(17, 19, 24, 0.05); }
.lb-user-trigger .lb-avatar, .lb-avatar img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: block; }
.lb-user-name { font-size: 14px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-user-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--lb-line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(17, 19, 24, 0.12);
  padding: 6px;
  z-index: 950;
}
.lb-user-menu a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px; color: var(--lb-ink-2);
}
.lb-user-menu a:hover { background: var(--lb-bg); color: var(--lb-ink); }

/* 移动端抽屉 */
.lb-drawer { position: fixed; inset: 0; z-index: 990; }
.lb-drawer-mask { position: absolute; inset: 0; background: rgba(17, 19, 24, 0.4); }
.lb-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 270px; background: #fff;
  padding: 18px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: -12px 0 32px rgba(17, 19, 24, 0.12);
}
.lb-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 16px; font-weight: 700;
  margin-bottom: 12px;
}
.lb-drawer-head button { border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--lb-ink-2); }
.lb-drawer-search { margin-bottom: 12px; }
.lb-drawer-search input {
  width: 100%; height: 38px;
  border: 1px solid var(--lb-line); border-radius: 999px;
  padding: 0 14px; font-size: 14px; outline: none;
}
.lb-drawer-search input:focus { border-color: var(--lb-ink); }
.lb-drawer-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  border-radius: 9px;
  font-size: 15px; color: var(--lb-ink-2);
}
.lb-drawer-link:hover { background: var(--lb-bg); color: var(--lb-ink); }
.lb-drawer-link.is-active { background: rgba(17, 19, 24, 0.05); color: var(--lb-ink); font-weight: 600; }
.lb-drawer-sep { height: 1px; margin: 8px 0; background: var(--lb-line); }

/* ============ 主体 ============ */
.lb-main { flex: 1; min-width: 0; }

/* 本主题信息流页内容居中限宽 */
.lb-feed-main { width: 100%; max-width: 720px; margin: 0 auto; }

/* 宿主回退页面与其他插件前台页（会员中心、发帖、榜单、网盘等 extend 本布局）占满剩余宽度 */
.lb-main > .content { width: 100%; max-width: none; margin: 0; }
.lb-main .content img { max-width: 100%; }

/* 柔化宿主/插件页内的大黑块按钮（立即充值等），与极简风格统一 */
.lb-main .uc-recharge-btn,
.lb-main .mnav-uc-recharge {
  background: var(--lb-bg) !important;
  color: var(--lb-ink) !important;
  border: 1px solid var(--lb-line) !important;
  box-shadow: none !important;
  font-weight: 500;
}
.lb-main .uc-recharge-btn:hover,
.lb-main .mnav-uc-recharge:hover { border-color: var(--lb-ink) !important; background: #fff !important; }

/* 宿主/插件页通用主按钮去黑块（签到卡登录/打卡签到等 btn-primary） */
.lb-main .btn-primary,
.lb-aside .btn-primary {
  background: #fff !important; color: var(--lb-ink) !important;
  border: 1px solid var(--lb-ink) !important; box-shadow: none !important;
}
.lb-main .btn-primary:hover,
.lb-aside .btn-primary:hover { background: var(--lb-bg) !important; }

/* 榜单页三栏化：隐藏插件自身右栏，主列表区拉伸 */
.lb-main .plaza-main:has(> .rl-left) { grid-template-columns: 225px minmax(0, 1fr); }
.lb-main .plaza-main:has(> .rl-left) > .rl-aside { display: none; }

/* 双栏（single）模式：隐藏右栏，信息流居中 */
.lb-layout-single .lb-feed-main { max-width: 720px; }

/* 右侧栏 */
.lb-aside {
  width: 300px; flex-shrink: 0;
  position: sticky; top: calc(var(--lb-header-h) + 24px);
  max-height: calc(100vh - var(--lb-header-h) - 48px);
  overflow-y: auto;
  scrollbar-width: none;
}
.lb-aside::-webkit-scrollbar { display: none; }
.lb-aside:not(:has(*)) { display: none; }

/* 卡片 */
.lb-card {
  background: var(--lb-card);
  border: 1px solid var(--lb-line);
  border-radius: var(--lb-radius);
  padding: 20px 22px;
  margin-bottom: 16px;
}

/* 页头卡（版块/标签/搜索） */
.lb-hub-head { padding: 18px 22px; }
.lb-hub-title { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.lb-hub-desc { margin-top: 4px; font-size: 13px; color: var(--lb-ink-3); }

/* ============ 信息流标签页 ============ */
.lb-feed-tabs-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 16px 0;
  position: sticky;
  top: calc(var(--lb-header-h) + 12px);
  z-index: 100;
}
.lb-tabs { display: flex; gap: 4px; }
.lb-tab {
  position: relative;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--lb-ink-2);
  transition: color 0.15s;
}
.lb-tab:hover { color: var(--lb-ink); }
.lb-tab.on { color: var(--lb-ink); font-weight: 600; }
.lb-tab.on::after {
  content: "";
  position: absolute; left: 14px; right: 14px; bottom: -1px;
  height: 2px; border-radius: 2px;
  background: var(--lb-primary);
}
.lb-publish-btn { margin-bottom: 6px; }

/* ============ 信息流帖子卡 ============ */
.lb-topic { transition: box-shadow 0.15s; }
.lb-topic:hover { box-shadow: 0 6px 24px rgba(17, 19, 24, 0.06); }

.lb-topic-head { display: flex; align-items: center; gap: 10px; }
.lb-avatar { flex-shrink: 0; display: inline-block; }
.lb-avatar img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; display: block; }
.lb-avatar-sm img { width: 26px; height: 26px; }
.lb-topic-meta { flex: 1; min-width: 0; }
.lb-topic-user { font-size: 14px; font-weight: 600; color: var(--lb-ink); }
.lb-topic-user:hover { text-decoration: underline; }
.lb-topic-time { font-size: 12px; color: var(--lb-ink-3); margin-top: 1px; }

.lb-flag { font-style: normal; font-weight: 600; }
.lb-flag-top { color: #dc2626; }
.lb-flag-essence { color: var(--lb-amber-ink); }

.lb-badge {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--lb-amber);
  color: var(--lb-amber-ink);
  font-size: 12px; font-weight: 500;
}
.lb-badge:hover { filter: brightness(0.96); }

.lb-topic-title {
  display: block;
  margin: 12px 0 0;
  font-size: 17px; font-weight: 600; line-height: 1.5;
  color: var(--lb-ink);
  word-break: break-word;
}
.lb-topic-title:hover { text-decoration: underline; }

.lb-topic-excerpt {
  display: block;
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--lb-ink-2);
  word-break: break-word;
}

.lb-topic-imgs {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.lb-imgs-1 { grid-template-columns: minmax(0, 420px); }
.lb-imgs-2 { grid-template-columns: repeat(2, 1fr); }
.lb-imgs-3 { grid-template-columns: repeat(3, 1fr); }
.lb-topic-img {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: var(--lb-bg);
  aspect-ratio: 4 / 3;
}
.lb-imgs-1 .lb-topic-img { aspect-ratio: auto; }
.lb-topic-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s; }
.lb-topic-img:hover img { transform: scale(1.03); }

.lb-topic-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lb-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--lb-amber);
  color: var(--lb-amber-ink);
  font-size: 12px;
}
.lb-tag:hover { filter: brightness(0.96); }

.lb-topic-actions {
  display: flex; align-items: center; gap: 26px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--lb-line);
}
.lb-act {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--lb-ink-3);
  transition: color 0.15s;
}
.lb-act i { font-size: 16px; }
.lb-act:hover { color: var(--lb-ink); }
.lb-act.is-static:hover { color: var(--lb-ink-3); cursor: default; }

/* 空状态 */
.lb-empty { padding: 48px 22px; text-align: center; color: var(--lb-ink-3); font-size: 14px; }

/* 分页 */
.lb-pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 0 4px; }
.lb-pager a, .lb-pager span {
  min-width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 10px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--lb-line);
  font-size: 14px; color: var(--lb-ink-2);
}
.lb-pager a:hover { border-color: var(--lb-ink); color: var(--lb-ink); }
.lb-pager .on { background: #fff; border-color: var(--lb-ink); color: var(--lb-ink); font-weight: 600; }
.lb-pager-nav { font-size: 17px; }

/* ============ 侧栏 ============ */
.lb-aside-card { padding: 18px 20px; }
.lb-aside-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; }

.lb-stats { display: flex; }
.lb-stat { flex: 1; text-align: center; }
.lb-stat b { display: block; font-size: 19px; font-weight: 700; }
.lb-stat span { font-size: 12px; color: var(--lb-ink-3); }
.lb-stat + .lb-stat { border-left: 1px solid var(--lb-line); }

.lb-aside-list { list-style: none; margin: 0; padding: 0; }
.lb-aside-list li { padding: 7px 0; border-bottom: 1px dashed var(--lb-line); font-size: 14px; }
.lb-aside-list li:last-child { border-bottom: 0; }
.lb-aside-list a { color: var(--lb-ink-2); display: inline-flex; align-items: center; gap: 6px; }
.lb-aside-list a:hover { color: var(--lb-ink); text-decoration: underline; }

.lb-hot-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.lb-hot-list li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-hot-views { flex-shrink: 0; font-size: 12px; color: var(--lb-ink-3); display: inline-flex; align-items: center; gap: 3px; }
.lb-hot-views i { color: #f59e0b; }

.lb-tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

.lb-page-nav a.on { color: var(--lb-ink); font-weight: 600; }
.lb-page-nav-empty { margin: 0; font-size: 13px; color: var(--lb-ink-3); }

/* 详情页作者卡 */
.lb-author-card-main { display: flex; align-items: center; gap: 10px; }
.lb-author-card-main .lb-avatar img { width: 44px; height: 44px; }
.lb-author-card-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lb-author-follow { width: 100%; margin-top: 14px; }

/* 右栏公告文案 / 签到卡 */
.lb-aside-title > span { display: inline-flex; align-items: center; gap: 6px; }
.lb-notice-text { margin: 0; font-size: 13px; line-height: 1.8; color: var(--lb-ink-2); }
.lb-motto { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--lb-ink-3); }
.lb-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border: 1px solid var(--lb-line); border-radius: 999px; font-size: 12px; font-weight: 400; color: var(--lb-ink-2); background: var(--lb-bg); }
.lb-btn-s { height: 28px; padding: 0 12px; font-size: 12.5px; border-radius: 999px; }
/* 签到卡：今日签到用户头像堆叠 */
.lb-signin-head { gap: 10px; }
.lb-signin-faces { flex: 1; display: flex !important; align-items: center; justify-content: flex-end; min-width: 0; padding-right: 4px; }
.lb-signin-face { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; background: var(--lb-bg); color: var(--lb-ink-3); font-size: 10px; flex-shrink: 0; overflow: hidden; }
.lb-signin-face:first-child { margin-left: 0; }
.lb-signin-face img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 右栏会员榜单 */
.lb-aside-title-more { display: flex; align-items: center; justify-content: space-between; }
.lb-aside-title-more a { display: inline-flex; align-items: center; font-size: 12px; font-weight: 400; color: var(--lb-ink-3); }
.lb-aside-title-more a:hover { color: var(--lb-ink); }
.lb-rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.lb-rank-list[hidden] { display: none; }
.lb-rank-list li { display: flex; align-items: center; gap: 8px; }
.lb-rank-no { font-style: italic; font-size: 13px; font-weight: 600; color: var(--lb-ink-3); width: 20px; text-align: center; flex-shrink: 0; }
.lb-rank-no.on { color: var(--lb-ink); }
.lb-rank-link { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; padding: 5px 6px; border-radius: 8px; }
.lb-rank-link:hover { background: var(--lb-bg); }
.lb-rank-link .lb-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.lb-rank-name { flex: 1; min-width: 0; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-rank-value { font-size: 12px; color: var(--lb-ink-3); font-weight: 600; flex-shrink: 0; }
.lb-rank-tabs { flex: 1; display: flex; align-items: center; justify-content: space-between; margin-left: 16px; }
.lb-rank-tabs a { display: inline-flex; align-items: center; font-size: 12px; color: var(--lb-ink-3); }
.lb-rank-tabs a.on { color: var(--lb-ink); font-weight: 600; }
.lb-rank-empty { padding: 10px 0; font-size: 12.5px; color: var(--lb-ink-3); text-align: center; }

/* ============ 详情页 ============ */
.lb-detail { padding: 28px 30px; }
.lb-detail-title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.45; word-break: break-word; }
.lb-detail-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 12px;
  font-size: 13px; color: var(--lb-ink-3);
}
.lb-detail-stat { display: inline-flex; align-items: center; gap: 4px; }
.lb-detail-edit { color: var(--lb-ink-2); }
.lb-detail-edit:hover { text-decoration: underline; }

.lb-detail-author {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; padding: 14px 0;
  border-top: 1px solid var(--lb-line);
  border-bottom: 1px solid var(--lb-line);
}
.lb-detail-author-who { flex: 1; min-width: 0; }
.lb-detail-author-line { display: flex; align-items: center; gap: 8px; }
.lb-level {
  font-style: normal; font-size: 11px; font-weight: 600;
  padding: 1px 8px; border-radius: 999px;
  background: var(--lb-primary); color: #fff;
}
.lb-level.lb-op { background: var(--lb-amber); color: var(--lb-amber-ink); }

.lb-detail-body { margin-top: 20px; font-size: 15.5px; line-height: 1.85; word-break: break-word; overflow-wrap: anywhere; }
.lb-detail-body p { margin: 0 0 1em; }
.lb-detail-body img { max-width: 100%; height: auto; border-radius: 10px; }
.lb-detail-body pre {
  background: #14161a; color: #e5e7eb;
  padding: 16px; border-radius: 10px;
  overflow: auto; font-size: 13.5px; line-height: 1.6;
}
.lb-detail-body code { font-family: "SFMono-Regular", Consolas, monospace; }
.lb-detail-body blockquote {
  margin: 0 0 1em;
  padding: 4px 16px;
  border-left: 3px solid var(--lb-line);
  color: var(--lb-ink-2);
}
.lb-detail-body a { color: var(--lb-primary); text-decoration: underline; }
.lb-detail-body h1, .lb-detail-body h2, .lb-detail-body h3, .lb-detail-body h4 { line-height: 1.4; margin: 1.2em 0 0.6em; }
.lb-detail-body ul, .lb-detail-body ol { padding-left: 1.4em; margin: 0 0 1em; }
.lb-detail-body table { border-collapse: collapse; width: 100%; margin: 0 0 1em; font-size: 14px; }
.lb-detail-body th, .lb-detail-body td { border: 1px solid var(--lb-line); padding: 8px 10px; text-align: left; }

/* 锁定内容 */
.lb-lock {
  display: flex; align-items: center; gap: 14px;
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px dashed var(--lb-line);
  border-radius: var(--lb-radius);
  background: var(--lb-bg);
}
.lb-lock-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%;
  background: #fff; border: 1px solid var(--lb-line);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; color: var(--lb-ink-2);
}
.lb-lock-main { flex: 1; min-width: 0; }
.lb-lock-main strong { display: block; font-size: 14.5px; }
.lb-lock-main span { font-size: 13px; color: var(--lb-ink-3); }

.lb-detail-tags { margin-top: 20px; }

.lb-detail-actions {
  display: flex; gap: 12px;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--lb-line);
}
.lb-act-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--lb-line);
  background: #fff;
  font-size: 14px; color: var(--lb-ink-2);
  cursor: pointer;
  transition: all 0.15s;
}
.lb-act-btn i { font-size: 16px; }
.lb-act-btn b { font-weight: 500; }
.lb-act-btn:hover { border-color: var(--lb-ink); color: var(--lb-ink); }
.lb-act-btn.on { background: var(--lb-bg); border-color: var(--lb-ink); color: var(--lb-ink); }

/* ============ 评论区 ============ */
.lb-replies { padding: 0; overflow: hidden; }
.lb-replies-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--lb-line);
}
.lb-replies-title { font-size: 15px; font-weight: 700; }
.lb-replies-sort { display: flex; gap: 14px; font-size: 13px; }
.lb-replies-sort a { color: var(--lb-ink-3); }
.lb-replies-sort a.on { color: var(--lb-ink); font-weight: 600; }

.lb-reply {
  display: flex; gap: 12px;
  padding: 18px 22px;
}
.lb-reply + .lb-reply, .lb-reply-children + .lb-reply { border-top: 1px solid var(--lb-line); }
.lb-reply-main { flex: 1; min-width: 0; }
.lb-reply-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lb-reply-floor { font-size: 12px; color: var(--lb-ink-3); }
.lb-reply-content { margin-top: 6px; font-size: 14.5px; line-height: 1.75; word-break: break-word; overflow-wrap: anywhere; }
.lb-reply-content p { margin: 0 0 0.6em; }
.lb-reply-content img { max-width: 100%; border-radius: 8px; }
.lb-reply-actions { margin-top: 6px; }
.lb-reply-btn {
  border: 0; background: none; cursor: pointer;
  font-size: 12.5px; color: var(--lb-ink-3);
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 0;
}
.lb-reply-btn:hover { color: var(--lb-ink); }

.lb-reply-children {
  margin: 0 22px 0 72px;
  background: var(--lb-bg);
  border-radius: 10px;
}
.lb-reply-child { padding: 12px 16px; border-top: 0 !important; }
.lb-reply-child + .lb-reply-child { border-top: 1px solid var(--lb-line) !important; }

.lb-reply-form { padding: 18px 22px; border-top: 1px solid var(--lb-line); }
.lb-reply-input {
  width: 100%;
  border: 1px solid var(--lb-line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px; font-family: inherit;
  resize: vertical;
  outline: none;
  background: var(--lb-bg);
  transition: border-color 0.15s, background 0.15s;
}
.lb-reply-input:focus { background: #fff; border-color: var(--lb-ink); }
.lb-reply-form-foot { display: flex; justify-content: flex-end; margin-top: 12px; }

.lb-reply-quote {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 10px;
  padding: 8px 12px;
  background: var(--lb-bg);
  border-left: 3px solid var(--lb-primary);
  border-radius: 6px;
  font-size: 13px; color: var(--lb-ink-2);
}
.lb-reply-quote button { border: 0; background: none; cursor: pointer; color: var(--lb-ink-3); font-size: 15px; }

.lb-reply-login { display: flex; align-items: center; gap: 14px; }
.lb-reply-login .lb-lock-main { flex: 1; }

/* ============ 版块页 ============ */
.lb-board-group-title { margin-bottom: 14px; }
.lb-board-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.lb-board-card {
  display: flex; gap: 12px;
  padding: 16px;
  border: 1px solid var(--lb-line);
  border-radius: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lb-board-card:hover { border-color: var(--lb-ink); box-shadow: 0 4px 16px rgba(17, 19, 24, 0.06); }
.lb-board-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--lb-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; color: var(--lb-ink);
  overflow: hidden;
}
.lb-board-icon img { width: 100%; height: 100%; object-fit: cover; }
.lb-board-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lb-board-meta strong { font-size: 15px; }
.lb-board-desc {
  font-size: 12.5px; color: var(--lb-ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lb-board-stats { font-size: 12px; color: var(--lb-ink-3); }
.lb-online-meta { margin: 0 0 12px; font-size: 13px; color: var(--lb-ink-3); }

/* ============ 页脚 ============ */
.lb-footer {
  background: #fff;
  border-top: 1px solid var(--lb-line);
  padding: 40px 20px 26px;
}
.lb-footer-inner { max-width: 1280px; margin: 0 auto; }
.lb-footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.9fr);
}
.lb-footer-brand strong { font-size: 15px; }
.lb-footer-brand p { margin: 10px 0 0; font-size: 13px; line-height: 1.75; color: var(--lb-ink-3); max-width: 520px; }
.lb-footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; min-width: 0; }
.lb-footer-col-title { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--lb-ink); }
.lb-footer-col-links { display: grid; gap: 10px; margin-top: 14px; }
.lb-footer-col-links a { width: fit-content; font-size: 13px; color: var(--lb-ink-3); word-break: break-word; }
.lb-footer-col-links a:hover { color: var(--lb-ink); }
.lb-footer-copy {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px;
  margin-top: 30px; padding-top: 18px;
  border-top: 1px solid var(--lb-line);
  font-size: 12.5px; color: var(--lb-ink-3);
}
.lb-footer-copy a { color: var(--lb-ink-2); }
.lb-footer-copy a:hover { text-decoration: underline; }
.lb-footer-runtime { font-family: Consolas, monospace; }

/* 回顶 */
.lb-backtop {
  position: fixed; right: 26px; bottom: 32px; z-index: 800;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--lb-line);
  background: #fff;
  color: var(--lb-ink-2);
  font-size: 19px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(17, 19, 24, 0.1);
  transition: all 0.15s;
}
.lb-backtop:hover { color: #fff; background: var(--lb-primary); border-color: var(--lb-primary); }

/* ============ 登录弹窗 ============ */
.lb-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.lb-modal-mask { position: absolute; inset: 0; background: rgba(17, 19, 24, 0.45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.lb-modal-panel {
  position: relative;
  width: 100%; max-width: 400px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(17, 19, 24, 0.2);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.lb-modal-x {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 32px; height: 32px;
  border: 0; border-radius: 50%;
  background: var(--lb-bg);
  color: var(--lb-ink-2);
  font-size: 16px; cursor: pointer;
}
.lb-modal-x:hover { background: var(--lb-line); color: var(--lb-ink); }

.lb-auth-main { padding: 34px 32px 28px; }
.lb-auth-header { text-align: center; margin-bottom: 24px; }
.lb-auth-title { margin: 0; font-size: 20px; font-weight: 700; }
.lb-auth-subtitle { margin: 6px 0 0; font-size: 13px; color: var(--lb-ink-3); }

.lb-auth-field { margin-bottom: 14px; }
.lb-auth-field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--lb-ink-2); }
.lb-auth-input {
  width: 100%; height: 42px;
  border: 1px solid var(--lb-line);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px; font-family: inherit;
  outline: none;
  background: var(--lb-bg);
  transition: border-color 0.15s, background 0.15s;
}
.lb-auth-input:focus { background: #fff; border-color: var(--lb-ink); }
.lb-auth-tip { margin: 6px 0 0; font-size: 12px; color: var(--lb-ink-3); }

.lb-auth-field-captcha, .lb-auth-field-action { position: relative; }
.lb-auth-field-captcha .lb-auth-input, .lb-auth-field-action .lb-auth-input { padding-right: 118px; }
.lb-auth-captcha {
  position: absolute; right: 4px; bottom: 4px;
  height: 34px; width: 108px;
  border-radius: 8px; cursor: pointer; object-fit: cover;
}
.lb-auth-action {
  position: absolute; right: 4px; bottom: 4px;
  height: 34px; padding: 0 12px;
  border: 1px solid var(--lb-line); border-radius: 8px;
  background: #fff; color: var(--lb-ink);
  font-size: 12.5px; cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}
.lb-auth-action:hover { border-color: var(--lb-ink); background: var(--lb-bg); }
.lb-auth-action[disabled] { opacity: 0.6; cursor: not-allowed; }

.lb-auth-row { display: flex; justify-content: flex-end; margin: -4px 0 14px; font-size: 13px; }
.lb-auth-row a { color: var(--lb-ink-3); }
.lb-auth-row a:hover { color: var(--lb-ink); }

.lb-auth-btn {
  width: 100%; height: 44px;
  border: 1px solid var(--lb-ink); border-radius: 999px;
  background: #fff; color: var(--lb-ink);
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.lb-auth-btn:hover { background: var(--lb-bg); }
.lb-auth-btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.lb-auth-switch { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--lb-ink-3); }
.lb-auth-switch a { color: var(--lb-ink); font-weight: 600; margin-left: 4px; }
.lb-auth-switch a:hover { text-decoration: underline; }

/* Toast 兜底 */
.lb-toast {
  position: fixed; top: 84px; left: 50%; transform: translateX(-50%);
  z-index: 1200;
  max-width: 80vw;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(17, 19, 24, 0.92);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(17, 19, 24, 0.2);
  animation: lb-toast-in 0.2s ease;
}
@keyframes lb-toast-in { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ============ 响应式 ============ */
@media (max-width: 1180px) {
  .lb-aside { display: none; }
}

@media (max-width: 900px) {
  .lb-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .lb-footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .lb-footer-nav { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

@media (max-width: 1023px) {
  .lb-sidenav { display: none; }
  .lb-mobile-btn { display: inline-flex; }
  .lb-header-nav { display: none; }
  .lb-shell { padding: calc(var(--lb-header-h) + 16px) 14px 40px; gap: 0; }
  .lb-header-inner { gap: 12px; padding: 0 14px; }
  .lb-search { display: none; }
  .lb-header-publish span { display: none; }
  .lb-header-publish { width: 38px; padding: 0; }
  .lb-user-name { display: none; }
  .lb-card { padding: 16px; border-radius: 12px; }
  .lb-detail { padding: 20px 18px; }
  .lb-detail-title { font-size: 19px; }
  .lb-board-grid { grid-template-columns: 1fr; }
  .lb-reply { padding: 14px 16px; }
  .lb-reply-children { margin: 0 12px 0 46px; }
  .lb-reply-form { padding: 14px 16px; }
  .lb-topic-actions { gap: 18px; }
  .lb-auth-main { padding: 28px 22px 22px; }
}
