/* ============================================================
   白鹭社区（原 EMFORUM）· 论坛主题预览样式 · 知乎风白色主题 v2
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px; line-height: 1.6; color: #121212; background: #f6f7f9;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; outline: none; }
img { max-width: 100%; }

/* ---------------- 品牌标识 ---------------- */
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; letter-spacing: .01em; flex-shrink: 0; }
.logo-icon { width: 33px; height: 33px; filter: drop-shadow(0 3px 6px rgba(10,108,255,.28)); }
.logo-txt { line-height: 1; padding-bottom: 2px; }
.logo-txt i { font-style: normal; font-weight: 600; color: #98a1ae; margin-left: 2px; }
.logo-page { font-size: 13px; color: #98a1ae; font-weight: 400; padding-left: 12px; margin-left: 4px; border-left: 1px solid #eceff3; line-height: 1.1; }

/* ---------------- 顶部导航 ---------------- */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid #ebebeb; }
.nav-inner { max-width: 1120px; margin: 0 auto; padding: 0 16px; height: 56px; display: flex; align-items: center; gap: 18px; }
.nav-search { flex: 1; max-width: 420px; position: relative; }
.nav-search input { width: 100%; height: 36px; padding: 0 14px 0 36px; border: 1px solid #e3e6ec; background: #f6f7f9; border-radius: 18px; transition: .2s; }
.nav-search svg { position: absolute; left: 12px; top: 9px; width: 17px; height: 17px; color: #98a1ae; }
.nav-search input:focus { background: #fff; border-color: #c9d6ea; box-shadow: 0 0 0 3px rgba(10,108,255,.08); }
.nav-menu { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 8px 14px; border-radius: 6px; color: #555666; font-size: 15px; cursor: pointer; white-space: nowrap; }
.nav-link:hover { background: #f2f4f8; color: #121212; }
.nav-link.active { color: #056de8; font-weight: 600; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #555666; cursor: pointer; position: relative; }
.icon-btn:hover { background: #f2f4f8; }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .red-dot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: #f5483b; }

.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: calc(100% + 6px); right: 0; width: 156px; background: #fff; border: 1px solid #ebebeb; border-radius: 10px; box-shadow: 0 6px 20px rgba(18,18,18,.09); padding: 6px 0; display: none; z-index: 110; }
.dropdown:hover .dropdown-menu { display: block; }
.dd-item { display: block; padding: 8px 14px; font-size: 14px; color: #444; }
.dd-item:hover { background: #f5f7fa; color: #056de8; }
.dd-divider { height: 1px; background: #f0f2f5; margin: 5px 0; }

/* ---------------- 按钮 ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 16px; border-radius: 6px; border: 1px solid transparent; font-size: 14px; cursor: pointer; transition: .15s; background: none; }
.btn-primary { background: linear-gradient(135deg, #0a6cff, #1279f5); color: #fff; box-shadow: 0 2px 6px rgba(10,108,255,.25); }
.btn-primary:hover { background: linear-gradient(135deg, #0a5fe6, #0f6ce0); }
.btn-outline { border-color: #d3d8e1; color: #555666; background: #fff; }
.btn-outline:hover { color: #056de8; border-color: #9cc3f5; }
.btn-ghost { color: #555666; }
.btn-ghost:hover { background: #f2f4f8; color: #056de8; }
.btn-sm { height: 28px; padding: 0 12px; font-size: 13px; border-radius: 5px; }
.btn-block { width: 100%; height: 42px; font-size: 15px; border-radius: 8px; }

/* ---------------- 头像 ---------------- */
.avatar { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; font-weight: 600; flex-shrink: 0; object-fit: cover; position: relative; }
.av-1 { background: linear-gradient(135deg,#4c7bff,#6a5bff); } .av-2 { background: linear-gradient(135deg,#00b578,#00c9a7); }
.av-3 { background: linear-gradient(135deg,#ff7d4d,#ff9a62); } .av-4 { background: linear-gradient(135deg,#9b6bff,#7ea1ff); }
.av-5 { background: linear-gradient(135deg,#f2b53c,#f6d365); } .av-6 { background: linear-gradient(135deg,#e35f8a,#f07ba8); }
.av-7 { background: linear-gradient(135deg,#2fb3c4,#43d6dd); }
.av-sm { width: 26px; height: 26px; font-size: 12px; }
.av-md { width: 44px; height: 44px; }
.av-lg { width: 76px; height: 76px; font-size: 30px; }
.online-dot { position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #2ecc71; border: 2px solid #fff; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { width: 28px; height: 28px; font-size: 12px; border: 2px solid #fff; margin-left: -8px; }
.avatar-stack .avatar:first-child { margin-left: 0; }

/* ---------------- 徽标 ---------------- */
.badge { display: inline-block; padding: 0 6px; height: 18px; line-height: 18px; font-size: 12px; border-radius: 4px; vertical-align: 2px; font-weight: 400; }
.b-founder { background: #ffece8; color: #f5483b; }
.b-admin   { background: #fff3e0; color: #ef8a1c; }
.b-editor  { background: #e8f3ff; color: #056de8; }
.b-writer  { background: #eafaf1; color: #0aa870; }
.b-lv      { background: #f2f4f8; color: #8590a6; }
.b-lv-hi   { background: linear-gradient(135deg,#eef4ff,#e6f7ff); color: #0a6cff; }
.b-top     { background: #fff7e6; color: #d48806; }
.b-best    { background: #e8f3ff; color: #056de8; }
.b-hot     { background: #ffece8; color: #f5483b; }
.b-close   { background: #eafaf1; color: #0aa870; }

.tag { padding: 3px 10px; border-radius: 4px; background: #f2f4f8; color: #555666; font-size: 13px; display: inline-block; }
.tag:hover { color: #056de8; background: #e8f3ff; }
.tags-row { display: flex; gap: 8px; flex-wrap: wrap; }
.hl { color: #056de8; background: #e8f3ff; border-radius: 2px; padding: 0 2px; font-style: normal; }

/* ---------------- 布局 ---------------- */
.layout { max-width: 1120px; margin: 16px auto 0; padding: 0 16px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.layout.narrow { max-width: 780px; grid-template-columns: minmax(0, 1fr); }
.main > * + * { margin-top: 16px; }
.aside > * + * { margin-top: 16px; }
.card { background: #fff; border: 1px solid #ebebeb; border-radius: 12px; overflow: hidden; }
.card-head { padding: 14px 20px; border-bottom: 1px solid #f0f2f5; display: flex; align-items: center; justify-content: space-between; }
.card-head h2 { font-size: 16px; font-weight: 600; }
.card-head .more { font-size: 13px; color: #98a1ae; }
.card-head .more:hover { color: #056de8; }

/* 公告条 */
.notice-bar { display: flex; align-items: center; gap: 12px; background: linear-gradient(90deg, #eaf3ff, #edfbff); border: 1px solid #d6e9ff; border-radius: 12px; padding: 10px 16px; font-size: 13.5px; color: #3a6bb0; }
.nb-tag { background: linear-gradient(135deg,#0a6cff,#18c8f2); color: #fff; font-size: 12px; border-radius: 4px; padding: 1px 8px; flex-shrink: 0; font-weight: 600; }
.notice-bar .nb-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-bar .nb-txt a:hover { color: #0a6cff; text-decoration: underline; }
.nb-ctrl { display: flex; gap: 4px; color: #9db8dc; }
.nb-ctrl span { cursor: pointer; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.7); }
.nb-ctrl span:hover { color: #0a6cff; }

/* 数据看板 */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-mini { background: #fff; border: 1px solid #ebebeb; border-radius: 12px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.stat-ico { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; font-weight: 700; flex-shrink: 0; }
.si-blue  { background: linear-gradient(135deg,#0a6cff,#4da0ff); }
.si-green { background: linear-gradient(135deg,#00b578,#3ad29f); }
.si-orange{ background: linear-gradient(135deg,#ff9a2e,#ffb95e); }
.si-purple{ background: linear-gradient(135deg,#8b6bff,#b18cff); }
.stat-num { font-size: 19px; font-weight: 700; line-height: 1.25; }
.stat-cap { font-size: 12px; color: #8a9099; }
.stat-cap b.up { color: #0aa870; } .stat-cap b.dn { color: #f5483b; }

/* 页签 */
.tabs { display: flex; gap: 26px; padding: 0 20px; border-bottom: 1px solid #f0f2f5; align-items: center; }
.tab { padding: 14px 2px; color: #646a73; font-size: 15px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.active { color: #056de8; font-weight: 600; border-color: #056de8; }
.tab:hover { color: #056de8; }
.tab .cnt { font-size: 12px; color: #98a1ae; font-weight: 400; }

/* 版块卡片墙 */
.board-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px 20px; }
.bcard { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid #f0f2f5; border-radius: 11px; transition: .15s; }
.bcard:hover { border-color: #bcd8f7; background: #fafcff; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(10,108,255,.07); }
.bico { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.bi-1 { background: linear-gradient(135deg,#0a6cff,#4da0ff); }
.bi-2 { background: linear-gradient(135deg,#00b578,#3ad29f); }
.bi-3 { background: linear-gradient(135deg,#8b6bff,#b18cff); }
.bi-4 { background: linear-gradient(135deg,#ff7d4d,#ffab7e); }
.bi-5 { background: linear-gradient(135deg,#f2b53c,#ffd166); }
.bi-6 { background: linear-gradient(135deg,#e35f8a,#f58cb2); }
.bi-7 { background: linear-gradient(135deg,#2fb3c4,#57dde6); }
.bcard .bn { font-weight: 600; font-size: 14px; line-height: 1.35; }
.bcard .bn:hover { color: #056de8; }
.bcard .bs { font-size: 12px; color: #98a1ae; }

/* 信息流条目 */
.feed-item { padding: 16px 20px; display: flex; gap: 12px; }
.feed-item + .feed-item { border-top: 1px solid #f0f2f5; }
.feed-main { flex: 1; min-width: 0; }
.feed-title { font-size: 16.5px; font-weight: 600; line-height: 1.45; }
.feed-title:hover { color: #056de8; }
.feed-title .badge { margin-left: 6px; }
.feed-excerpt { margin-top: 6px; color: #646a73; font-size: 14px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.feed-meta { margin-top: 10px; display: flex; align-items: center; gap: 14px; color: #8a9099; font-size: 13px; flex-wrap: wrap; }
.feed-meta .u { color: #555666; }
.feed-meta .u:hover { color: #056de8; }
.feed-meta .sep::before { content: "·"; margin-right: 14px; color: #d0d4dc; }
.feed-thumb { width: 118px; height: 79px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; letter-spacing: 1px; align-self: center; }
.ft-a { background: linear-gradient(135deg,#dbeaff,#c9e8ff); color: #6b9bd8; }
.ft-b { background: linear-gradient(135deg,#ffe9db,#ffdcec); color: #d68f6b; }
.ft-c { background: linear-gradient(135deg,#e4defc,#d5f0ff); color: #8f83cf; }
.feed-stats { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding-left: 18px; border-left: 1px solid #f0f2f5; min-width: 64px; color: #8a9099; font-size: 12px; flex-shrink: 0; }
.feed-stats b { color: #121212; font-size: 15px; }

/* 面包屑 */
.crumb { font-size: 13px; color: #8a9099; padding: 13px 20px; border-bottom: 1px solid #f0f2f5; }
.crumb a:hover { color: #056de8; }
.crumb .sep { margin: 0 8px; color: #d0d4dc; }

/* 版块头 */
.cover-band { height: 74px; background: linear-gradient(115deg, #e3efff 0%, #ecfaff 55%, #f4efff 100%); position: relative; overflow: hidden; }
.cover-band::before { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(10,108,255,.12), transparent 70%); top: -130px; right: -30px; }
.cover-band::after { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(139,107,255,.10), transparent 70%); bottom: -80px; left: 22%; }
.board-hero { display: flex; gap: 16px; align-items: flex-start; padding: 20px; }
.board-hero.overlap { padding-top: 0; }
.board-hero.overlap .board-icon { margin-top: -26px; border: 3px solid #fff; box-shadow: 0 5px 14px rgba(18,18,18,.10); }
.board-icon { width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; font-weight: 700; background: linear-gradient(135deg, #0a6cff, #18c8f2); flex-shrink: 0; }
.board-info { flex: 1; min-width: 0; }
.board-info h1 { font-size: 19px; }
.board-info h1 .badge { vertical-align: 4px; margin-left: 8px; }
.board-info p { color: #646a73; font-size: 14px; margin-top: 4px; }
.board-meta { display: flex; gap: 16px; margin-top: 10px; font-size: 13px; color: #8a9099; flex-wrap: wrap; align-items: center; }
.board-meta b { color: #121212; }
.mod-links a { color: #555666; }
.mod-links a:hover { color: #056de8; }
.sub-boards { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 16px; align-items: center; }

/* 过滤栏 / 分段控件 */
.filter-bar { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid #f0f2f5; font-size: 13px; color: #8a9099; flex-wrap: wrap; }
.filter-bar .spacer { flex: 1; }
.sort-txt { cursor: pointer; }
.sort-txt:hover { color: #056de8; }
.sort-txt.on { color: #056de8; font-weight: 600; }
.seg { display: inline-flex; background: #f2f4f8; border-radius: 8px; padding: 3px; }
.seg span { padding: 4px 13px; border-radius: 6px; font-size: 13px; color: #555666; cursor: pointer; white-space: nowrap; }
.seg span.on { background: #fff; color: #056de8; font-weight: 600; box-shadow: 0 1px 4px rgba(18,18,18,.07); }
.mini-select { height: 30px; border: 1px solid #e3e6ec; border-radius: 6px; padding: 0 8px; font-size: 13px; color: #555666; background: #fff; }

/* 精华迷你卡片 */
.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px 20px; }
.mini-card { border: 1px solid #f0f2f5; border-radius: 10px; padding: 14px; transition: .15s; }
.mini-card:hover { box-shadow: 0 6px 14px rgba(18,18,18,.06); border-color: #e3e6ec; }
.mini-card h4 { font-size: 13.5px; line-height: 1.5; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-card h4:hover { color: #056de8; }
.mini-card p { font-size: 12px; color: #98a1ae; margin-top: 8px; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 18px; }
.pg { min-width: 32px; height: 32px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid #e3e6ec; background: #fff; color: #555666; font-size: 14px; }
.pg:hover { border-color: #9cc3f5; color: #056de8; }
.pg.active { background: linear-gradient(135deg,#0a6cff,#1279f5); border-color: transparent; color: #fff; }
.pg.disabled { color: #c2c7d0; border-color: #eef0f4; }

/* ---------------- 侧边组件 ---------------- */
.widget + .widget { margin-top: 16px; }
.wg-head { padding: 14px 20px 4px; font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; }
.wg-head .more { font-size: 12px; color: #98a1ae; font-weight: 400; }
.wg-head .more:hover { color: #056de8; }
.wg-body { padding: 10px 0 12px; }
.wg-row { display: flex; align-items: center; gap: 10px; padding: 8px 20px; font-size: 14px; }
.wg-row:hover { background: #fafbfc; }
.wg-row .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-row:hover .t { color: #056de8; }
.wg-row .n { font-size: 12px; color: #b3bac4; }
.wg-rank { width: 18px; color: #c0c4cc; font-style: italic; font-weight: 700; font-size: 14px; text-align: center; flex-shrink: 0; }
.wg-rank.top3 { color: #f5483b; }
.wg-date { margin-left: auto; font-size: 12px; color: #b3bac4; }
.wg-user { display: flex; align-items: center; gap: 10px; padding: 8px 20px; font-size: 14px; }
.wg-user:hover { background: #fafbfc; }
.wg-user .info { flex: 1; min-width: 0; }
.wg-user .info .nm { font-weight: 500; }
.wg-user .info .ds { font-size: 12px; color: #98a1ae; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 每日签到 */
.checkin { padding: 18px 20px 20px; text-align: center; position: relative; overflow: hidden; }
.checkin::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(255,154,46,.12), transparent 70%); top: -90px; right: -60px; }
.ci-streak { font-size: 13px; color: #8a9099; }
.ci-streak b { font-size: 24px; color: #ef8a1c; font-family: Georgia, serif; padding: 0 2px; }
.ci-week { display: flex; justify-content: center; gap: 7px; margin-top: 14px; }
.ci-dot { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #e3e6ec; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #b3bac4; }
.ci-dot.done { background: #ffedd6; border-color: #ffd591; color: #ef8a1c; font-weight: 700; }
.ci-dot.today { background: linear-gradient(135deg,#ff9a2e,#ffb95e); border-color: transparent; color: #fff; font-weight: 700; box-shadow: 0 3px 8px rgba(255,154,46,.35); }

/* 推广卡 */
.promo-card { background: linear-gradient(140deg, #0a6cff 0%, #18a8f2 70%, #18c8f2 100%); border: none; color: #fff; padding: 20px; position: relative; overflow: hidden; }
.promo-card::after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.10); bottom: -100px; right: -70px; }
.promo-card h3 { font-size: 16px; margin-bottom: 6px; position: relative; }
.promo-card p { font-size: 13px; opacity: .92; margin-bottom: 14px; position: relative; }
.promo-card .btn-white { background: #fff; color: #0a6cff; height: 32px; border-radius: 16px; padding: 0 16px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; position: relative; }

/* ---------------- 帖子详情 ---------------- */
.phead { padding: 18px 20px 14px; border-bottom: 1px solid #f0f2f5; }
.phead h1 { font-size: 22px; line-height: 1.4; }
.phead h1 .badge { vertical-align: 6px; margin-right: 8px; }
.pmeta { margin-top: 10px; display: flex; align-items: center; gap: 12px; color: #8a9099; font-size: 13px; flex-wrap: wrap; }
.pauthor { display: flex; align-items: center; gap: 10px; }
.pauthor .nm { font-weight: 600; }
.pcontent { padding: 20px; font-size: 15.5px; line-height: 1.85; color: #25282e; }
.pcontent p { margin: 12px 0; }
.pcontent h2 { font-size: 18px; margin: 20px 0 10px; }
.pcontent ul.sol { list-style: decimal; padding-left: 22px; margin: 10px 0; }
.pcontent ul.sol li { margin: 6px 0; }
.pcontent blockquote { margin: 14px 0; padding: 10px 16px; background: #f7f8fa; border-left: 3px solid #c9d6ea; color: #555666; border-radius: 0 6px 6px 0; font-size: 14px; }
.pcontent code { background: #f2f4f8; padding: 2px 6px; border-radius: 4px; font-size: 13px; color: #d56161; font-family: Consolas, Monaco, monospace; }
.pcontent pre { background: #282c34; color: #abb2bf; padding: 14px 16px; border-radius: 8px; overflow-x: auto; font-size: 13px; line-height: 1.7; margin: 14px 0; font-family: Consolas, Monaco, monospace; }
.img-ph { height: 260px; border-radius: 8px; background: repeating-linear-gradient(45deg, #eef1f6, #eef1f6 12px, #f6f8fb 12px, #f6f8fb 24px); display: flex; align-items: center; justify-content: center; color: #a8b0bc; margin: 14px 0; font-size: 13px; }
.action-bar { display: flex; gap: 10px; padding: 12px 20px; border-top: 1px solid #f0f2f5; flex-wrap: wrap; align-items: center; }
.action-bar .grow { flex: 1; }
.vote-btn { height: 32px; padding: 0 16px; border-radius: 16px; background: #f0f6ff; color: #056de8; border: 1px solid transparent; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.vote-btn.out { background: #fff; border-color: #e3e6ec; color: #646a73; }
.vote-btn:hover { border-color: #9cc3f5; }
.vote-btn.thanks { background: #fff7e6; color: #d48806; }
.act-link { color: #8a9099; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.act-link:hover { color: #056de8; }

/* 回复区 */
.reply-item { display: flex; gap: 12px; padding: 16px 20px; }
.reply-item + .reply-item { border-top: 1px solid #f0f2f5; }
.reply-body { flex: 1; min-width: 0; }
.reply-head { font-size: 13px; color: #8a9099; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reply-head .uname { color: #121212; font-weight: 500; font-size: 14px; }
.reply-head .uname:hover { color: #056de8; }
.reply-floor { margin-left: auto; color: #b3bac4; }
.reply-text { margin-top: 6px; font-size: 14.5px; line-height: 1.75; color: #25282e; overflow-wrap: break-word; }
.quote { border-left: 3px solid #dbe3ee; background: #fafbfd; padding: 8px 12px; margin: 8px 0; font-size: 13px; color: #646a73; border-radius: 0 6px 6px 0; }
.quote b { color: #056de8; font-weight: 500; }
.reply-foot { margin-top: 8px; display: flex; gap: 18px; font-size: 13px; color: #8a9099; }
.reply-foot span { cursor: pointer; }
.reply-foot span:hover { color: #056de8; }
.op-tag { background: #f0f6ff; color: #056de8; font-size: 12px; padding: 0 5px; border-radius: 3px; }
.reply-item.best { background: linear-gradient(90deg, #f4fcf7, #fbfffc); box-shadow: inset 3px 0 0 #0aa870; }
.best-flag { display: inline-flex; align-items: center; gap: 4px; background: #0aa870; color: #fff; font-size: 12px; border-radius: 4px; padding: 1px 8px; }

/* 回复编辑器 */
.reply-editor { padding: 16px 20px 20px; }
.reply-editor .who { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; color: #555666; }
.reply-editor textarea { width: 100%; min-height: 110px; border: 1px solid #e3e6ec; border-radius: 10px; padding: 12px 14px; resize: vertical; line-height: 1.7; }
.reply-editor textarea:focus { border-color: #9cc3f5; box-shadow: 0 0 0 3px rgba(10,108,255,.07); }
.ed-toolbar { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 10px; flex-wrap: wrap; }
.ed-tools { display: flex; gap: 2px; color: #8a9099; }
.ed-tools span { min-width: 30px; height: 30px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; cursor: pointer; font-size: 13px; }
.ed-tools span:hover { background: #f2f4f8; color: #056de8; }

/* ---------------- 表单 ---------------- */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: #333; }
.form-label .req { color: #f5483b; margin-left: 2px; }
.input, .select, .textarea { width: 100%; height: 42px; border: 1px solid #dfe3eb; border-radius: 8px; padding: 0 14px; background: #fff; transition: border .15s; font-size: 14px; }
.select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2398a1ae' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.textarea { height: auto; padding: 12px 14px; min-height: 160px; resize: vertical; line-height: 1.7; }
.input:focus, .select:focus, .textarea:focus { border-color: #056de8; box-shadow: 0 0 0 3px rgba(10,108,255,.08); }
.form-tip { font-size: 12px; color: #98a1ae; margin-top: 6px; line-height: 1.6; }
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-img { width: 128px; height: 42px; border-radius: 8px; border: 1px dashed #dfe3eb; background: repeating-linear-gradient(45deg, #f6f8fb, #f6f8fb 8px, #eef1f6 8px, #eef1f6 16px); display: flex; align-items: center; justify-content: center; font-size: 15px; color: #8a93a3; letter-spacing: 3px; font-style: italic; font-family: Georgia, serif; flex-shrink: 0; }
.code-btn { width: 118px; flex-shrink: 0; border: 1px solid #9cc3f5 !important; color: #056de8 !important; background: #f0f6ff !important; border-radius: 8px !important; height: 42px !important; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #555666; cursor: pointer; }
.check-row input { width: 16px; height: 16px; accent-color: #056de8; }
.form-footer { text-align: center; font-size: 14px; color: #8a9099; margin-top: 18px; }
.form-footer a { color: #056de8; }
.pwd-meter { display: flex; gap: 6px; margin-top: 8px; }
.pwd-meter i { flex: 1; height: 4px; border-radius: 2px; background: #eef1f6; }
.pwd-meter.mid i:nth-child(-n+2) { background: #ef8a1c; }
.pwd-tip { font-size: 12px; margin-top: 6px; color: #98a1ae; }
.pwd-tip b { color: #ef8a1c; font-weight: 500; }

/* 登录/注册分栏面板 */
.auth-stage { min-height: calc(100vh - 190px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-panel-split { display: grid; grid-template-columns: 1.08fr 1fr; width: 100%; max-width: 880px; background: #fff; border: 1px solid #ebebeb; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 36px rgba(18,18,18,.07); }
.ap-left { background: linear-gradient(160deg, #0a6cff 0%, #149af5 55%, #18c8f2 100%); color: #fff; padding: 44px 40px; position: relative; overflow: hidden; }
.ap-left::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(255,255,255,.09); bottom: -190px; right: -130px; }
.ap-left::before { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.07); top: -90px; left: -70px; }
.ap-brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; position: relative; }
.ap-brand .logo-icon { width: 40px; height: 40px; }
.ap-brand .logo-txt i { color: rgba(255,255,255,.78); }
.ap-slogan { font-size: 21px; font-weight: 700; margin-top: 36px; line-height: 1.55; position: relative; }
.ap-sub { opacity: .88; margin-top: 10px; font-size: 14px; position: relative; }
.ap-feats { margin-top: 34px; position: relative; }
.ap-feats li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 14px; opacity: .96; }
.ap-feats .fk { width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.24); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; margin-top: 2px; }
.ap-stats { margin-top: 36px; display: flex; gap: 30px; position: relative; }
.ap-stats b { display: block; font-size: 20px; }
.ap-stats span { font-size: 12px; opacity: .82; }
.ap-right { padding: 42px 38px 30px; }
.ap-right h1 { font-size: 20px; margin-bottom: 24px; }

/* ---------------- 发布页 ---------------- */
.editor { border: 1px solid #dfe3eb; border-radius: 10px; overflow: hidden; }
.editor:focus-within { border-color: #9cc3f5; }
.ed-bar { display: flex; gap: 2px; padding: 6px 8px; border-bottom: 1px solid #eef0f4; background: #fafbfc; flex-wrap: wrap; align-items: center; }
.ed-bar span { min-width: 28px; height: 28px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; font-size: 13px; color: #555666; cursor: pointer; }
.ed-bar span:hover { background: #eef1f6; color: #056de8; }
.ed-bar .bold { font-weight: 700; }
.ed-bar .ital { font-style: italic; }
.ed-bar .undl { text-decoration: underline; }
.editor .editor-area { width: 100%; border: none; min-height: 300px; padding: 14px 16px; resize: vertical; line-height: 1.8; font-size: 15px; }
.ed-foot { display: flex; justify-content: space-between; padding: 8px 14px; border-top: 1px solid #eef0f4; background: #fafbfc; font-size: 12px; color: #98a1ae; }
.title-input { height: 48px !important; font-size: 16px !important; font-weight: 500; }
.cover-ph { height: 130px; border: 1px dashed #dfe3eb; border-radius: 10px; display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; color: #98a1ae; font-size: 13px; cursor: pointer; background: #fafbfd; }
.cover-ph:hover { border-color: #9cc3f5; color: #056de8; }
.form-actions { display: flex; gap: 10px; }
.rule-list { padding: 6px 20px 14px; }
.rule-list li { position: relative; padding: 5px 0 5px 16px; font-size: 13px; color: #646a73; }
.rule-list li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 5px; height: 5px; border-radius: 50%; background: #c9d6ea; }
.reward-chip { display: inline-flex; align-items: center; gap: 6px; background: #fff7e6; border: 1px solid #ffe7ba; color: #d48806; border-radius: 16px; padding: 3px 12px; font-size: 12px; }
.tip-card li { position: relative; padding: 6px 0 6px 24px; font-size: 13px; color: #646a73; line-height: 1.7; }
.tip-card li::before { content: "✓"; position: absolute; left: 2px; top: 6px; color: #0aa870; font-weight: 700; }
.md-table { width: 100%; font-size: 12.5px; border-collapse: collapse; }
.md-table td { padding: 6px 20px; border-top: 1px dashed #eef0f4; color: #646a73; }
.md-table tr:first-child td { border-top: none; }
.md-table code { background: #f2f4f8; padding: 1px 5px; border-radius: 4px; font-size: 11.5px; color: #d56161; font-family: Consolas, monospace; }

/* ---------------- 个人中心 ---------------- */
.profile-cover { height: 92px; background: linear-gradient(120deg, #0a6cff 0%, #149af5 60%, #18c8f2 100%); position: relative; overflow: hidden; }
.profile-cover::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.12); bottom: -160px; right: -60px; }
.profile-head { display: flex; gap: 18px; padding: 20px 20px 0; align-items: flex-start; }
.profile-head.overlap { padding-top: 0; margin-top: -32px; }
.profile-head.overlap .avatar { border: 3px solid #fff; box-shadow: 0 5px 14px rgba(18,18,18,.14); }
.profile-info { flex: 1; min-width: 0; padding-top: 38px; }
.profile-name { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-desc { color: #646a73; font-size: 13.5px; margin-top: 6px; }
.profile-stats { display: flex; gap: 24px; margin-top: 14px; font-size: 13px; color: #8a9099; flex-wrap: wrap; }
.profile-stats a:hover { color: #056de8; }
.profile-stats b { color: #121212; font-size: 16px; margin-right: 4px; }
.profile-foot { padding: 16px 20px 20px; }
.lv-line { font-size: 12px; color: #8a9099; }
.lv-progress { height: 6px; background: #eef1f6; border-radius: 3px; overflow: hidden; margin-top: 6px; }
.lv-progress i { display: block; height: 100%; width: 62%; background: linear-gradient(90deg, #0a6cff, #18c8f2); border-radius: 3px; }
.menu-list { padding: 8px 0; }
.menu-item { display: flex; align-items: center; gap: 10px; padding: 11px 20px; font-size: 14px; color: #444; cursor: pointer; }
.menu-item:hover { background: #fafbfc; color: #056de8; }
.menu-item.active { background: #f0f6ff; color: #056de8; font-weight: 600; border-right: 2px solid #056de8; }
.menu-item .cnt { margin-left: auto; font-size: 12px; color: #b3bac4; }
.perm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.perm-table caption { caption-side: top; text-align: left; padding: 14px 20px 6px; font-weight: 600; font-size: 14px; }
.perm-table th, .perm-table td { padding: 8px 20px; text-align: left; }
.perm-table tbody tr { border-top: 1px solid #f0f2f5; }
.perm-table th { color: #8a9099; font-weight: 400; }
.perm-ok { color: #0aa870; }
.perm-half { color: #ef8a1c; }
.perm-no { color: #c2c7d0; }

/* 成就徽章 */
.medal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px 20px 18px; }
.medal { border: 1px solid #f0f2f5; border-radius: 11px; padding: 12px 4px 10px; text-align: center; }
.medal .mi { width: 40px; height: 40px; margin: 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: #fff; box-shadow: 0 3px 8px rgba(18,18,18,.12); }
.medal p { font-size: 11.5px; color: #646a73; margin-top: 6px; }
.medal span { display: block; font-size: 10.5px; color: #b3bac4; }
.medal.locked { opacity: .42; filter: grayscale(.7); }
.mi-gold { background: linear-gradient(135deg,#f7b733,#fddb6e); }
.mi-blue { background: linear-gradient(135deg,#0a6cff,#5aa7ff); }
.mi-red { background: linear-gradient(135deg,#f5483b,#ff8a7e); }
.mi-green { background: linear-gradient(135deg,#00b578,#4cd9a5); }
.mi-purple { background: linear-gradient(135deg,#8b6bff,#b49aff); }
.mi-cyan { background: linear-gradient(135deg,#18b8f2,#5ad4ff); }

/* ---------------- 成员列表 ---------------- */
.member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 20px; }
.member-card { border: 1px solid #f0f2f5; border-radius: 12px; padding: 20px 14px 16px; text-align: center; transition: .15s; position: relative; }
.member-card:hover { box-shadow: 0 8px 20px rgba(18,18,18,.07); border-color: #e3e6ec; transform: translateY(-2px); }
.member-card .nm { margin-top: 10px; font-weight: 600; }
.member-card .ds { margin-top: 2px; font-size: 12px; color: #98a1ae; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-card .mt { margin-top: 6px; font-size: 12px; color: #8a9099; }
.lvbar { height: 4px; background: #eef1f6; border-radius: 2px; margin: 12px 18px 0; overflow: hidden; }
.lvbar i { display: block; height: 100%; background: linear-gradient(90deg, #0a6cff, #18c8f2); border-radius: 2px; }
.member-card .acts { margin-top: 12px; display: flex; justify-content: center; gap: 8px; }
.role-line { display: flex; gap: 14px; flex-wrap: wrap; padding: 12px 20px; border-bottom: 1px solid #f0f2f5; font-size: 13px; color: #8a9099; align-items: center; }
.role-line b { color: #121212; }

/* ---------------- 其他 ---------------- */
.alert { padding: 10px 14px; border-radius: 8px; font-size: 13px; background: #f0f6ff; color: #056de8; border: 1px solid #d6e6fb; line-height: 1.6; }
.alert.warn { background: #fff7e6; color: #d48806; border-color: #ffe7ba; }

.empty { text-align: center; padding: 56px 20px 50px; color: #98a1ae; }
.empty .num { font-size: 72px; font-weight: 800; line-height: 1; background: linear-gradient(135deg, #c9d6ea, #e8eef7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.empty p { margin: 12px 0 20px; }

.site-footer { max-width: 1120px; margin: 36px auto 0; padding: 20px 16px 30px; color: #a2a8b3; font-size: 13px; text-align: center; border-top: 1px solid #eceff3; }
.site-footer a { color: #8590a6; margin: 0 8px; }
.site-footer a:hover { color: #056de8; }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .aside { display: none; }
  .nav-search { display: none; }
  .member-grid { grid-template-columns: repeat(2, 1fr); }
  .feed-stats { display: none; }
  .feed-thumb { display: none; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-cards { grid-template-columns: 1fr; }
}

/* ---------------- 版块大全（目录页） ---------------- */
.bi-8 { background: linear-gradient(135deg, #f759ab, #ff8fc7); }
.cat-block + .cat-block { margin-top: 16px; }
.cat-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid #f0f2f5; background: linear-gradient(90deg, #fbfdff, #fff); flex-wrap: wrap; }
.cat-dot { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, #0a6cff, #18c8f2); box-shadow: 0 0 0 3px rgba(10,108,255,.13); flex-shrink: 0; }
.cat-head h2 { font-size: 16px; font-weight: 700; }
.cat-head p { font-size: 12.5px; color: #98a1ae; }
.cat-head .cmeta { margin-left: auto; font-size: 12px; color: #98a1ae; }
.brow { display: flex; gap: 14px; padding: 16px 20px; align-items: center; transition: .15s; }
.brow:hover { background: #fafcff; }
.brow + .brow { border-top: 1px solid #f6f7f9; }
.brow-main { flex: 1; min-width: 0; }
.brow-name { font-size: 15.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.brow-name:hover { color: #056de8; }
.brow-desc { font-size: 13px; color: #8a9099; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 560px; }
.brow-subs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.bsub { font-size: 12px; color: #555666; background: #f2f4f8; border-radius: 4px; padding: 2px 8px; cursor: pointer; }
.bsub:hover { color: #056de8; background: #e8f3ff; }
.brow-side { display: flex; gap: 22px; align-items: center; flex-shrink: 0; }
.bstat { text-align: center; min-width: 50px; }
.bstat b { display: block; font-size: 15px; }
.bstat span { font-size: 12px; color: #98a1ae; }
.lastpost { width: 210px; border-left: 1px solid #f0f2f5; padding-left: 18px; font-size: 12px; color: #8a9099; line-height: 1.6; }
.lastpost .lp-cap { font-size: 11px; color: #b3bac4; letter-spacing: 1px; margin-bottom: 2px; }
.lastpost .lp-t { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #555666; }
.lastpost .lp-t:hover { color: #056de8; }
.lp-u { display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; }
.mini-ava { width: 18px !important; height: 18px !important; font-size: 10px !important; }
@media (max-width: 960px) {
  .lastpost { display: none; }
  .brow-side { gap: 12px; }
}

/* ============================================================
   emlog Pro integration layer
   ============================================================ */
:root {
  --primary: #0a6cff;
  --accent: #18c8f2;
  --bg: #f6f7f9;
  --text: #121212;
  --container: 1120px;
  --radius: 12px;
  --base-size: 15px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-size: var(--base-size);
}
.navbar, .layout, .site-footer { max-width: none; }
.nav-inner, .layout { width: min(var(--container), calc(100% - 32px)); margin-inline: auto; }
.nav-inner { padding: 0; }
.site-footer { width: min(var(--container), calc(100% - 32px)); }
.card { border-radius: var(--radius); }
.btn-primary { background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 78%, var(--accent))); }
.btn-primary:hover { filter: brightness(.96); }
.logo-image { width: auto; height: 30px; object-fit: contain; }
.nav-toggle { display: none; width: 36px; height: 36px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.list-item { position: relative; }
.list-item > .nav-link { display: inline-flex; align-items: center; gap: 7px; }
.user-dropdown > .nav-link { height: 36px; padding: 3px 9px 3px 4px; border-radius: 18px; }
.header-avatar { width: 28px !important; height: 28px !important; font-size: 12px !important; }
.submit-link { white-space: nowrap; }
.nav-overlay { position: fixed; inset: 0; z-index: 98; background: rgba(0,0,0,.35); opacity: 0; visibility: hidden; transition: .2s; }
.nav-overlay.show { opacity: 1; visibility: visible; }

.hero-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 26px; background: linear-gradient(135deg, rgba(10,108,255,.08), rgba(24,200,242,.06)); }
.hero-card h1 { font-size: clamp(23px, 3vw, 31px); line-height: 1.25; }
.hero-card p { margin-top: 10px; color: #555666; max-width: 620px; }
.hero-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.hero-image { width: min(280px, 34vw); aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }

.list-head span { font-size: 13px; color: #98a1ae; }
.bcard > span:last-child { display: block; min-width: 0; }
.bcard .bn, .bcard .bs { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-description { padding: 14px 20px 0; color: #646a73; font-size: 14px; }
.feed-title { display: inline; }
.feed-title .act-link { margin-left: 8px; font-size: 12px; }
.feed-meta .tag { line-height: 20px; height: auto; }
.feed-thumb { overflow: hidden; }
.feed-thumb img { width: 118px; height: 79px; object-fit: cover; border-radius: 9px; display: block; }
.feed-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feed-cards .card-head, .feed-cards .pagination { grid-column: 1 / -1; }
.feed-cards .feed-item { display: grid; grid-template-rows: auto auto; border-top: 1px solid #f0f2f5; }
.feed-cards .has-cover .feed-thumb { order: -1; width: auto; height: 150px; margin: 16px 16px 0; }
.feed-cards .has-cover .feed-thumb img { width: 100%; height: 150px; }
.post-list .empty { border-top: 1px solid #f0f2f5; }

.thread-card { overflow: visible; }
.board-page-card .board-hero.overlap { position: relative; z-index: 2; margin-top: -26px; }
.act-link { border: 0; background: transparent; }
.post-cover { margin: 18px 20px 0; }
.post-cover img { width: 100%; max-height: 480px; object-fit: cover; border-radius: 10px; }
.post-tags { padding: 14px 20px 0; }
.action-bar { margin-top: 16px; }
.right-meta { margin-left: auto; }
.neighbor-posts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.neighbor-card { background: #fff; border: 1px solid #ebebeb; border-radius: 10px; padding: 13px 15px; display: grid; gap: 4px; min-width: 0; }
.neighbor-card span { font-size: 12px; color: #98a1ae; }
.neighbor-card strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.neighbor-card.next { text-align: right; }

.markdown { color: #25282e; word-break: break-word; }
.pcontent.markdown { padding: 20px; font-size: 15.5px; line-height: 1.85; }
.markdown h1, .markdown h2, .markdown h3, .markdown h4 { margin: 22px 0 10px; line-height: 1.4; color: var(--text); scroll-margin-top: 74px; }
.markdown h1 { font-size: 24px; } .markdown h2 { font-size: 20px; } .markdown h3 { font-size: 17px; }
.markdown p { margin: 12px 0; }
.markdown a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.markdown ul, .markdown ol { padding-left: 24px; margin: 10px 0; }
.markdown li + li { margin-top: 5px; }
.markdown img { cursor: zoom-in; border-radius: 8px; }
.markdown table { width: 100%; border-collapse: collapse; margin: 14px 0; display: block; overflow-x: auto; }
.markdown th, .markdown td { border: 1px solid #e3e6ec; padding: 8px 10px; font-size: 14px; }
.markdown th { background: #f7f8fa; }
.markdown code { background: #f2f4f8; color: #d56161; padding: 2px 6px; border-radius: 4px; }
.markdown pre { margin: 14px 0; padding: 14px 16px; border-radius: 8px; background: #282c34; color: #abb2bf; overflow: auto; }
.markdown pre code { background: transparent; color: inherit; padding: 0; }
.markdown blockquote { margin: 14px 0; padding: 10px 16px; background: #f7f8fa; border-left: 3px solid #c9d6ea; color: #555666; border-radius: 0 6px 6px 0; }

.toc { list-style: none; padding-bottom: 10px; }
.toc a { display: block; padding: 7px 20px; color: #555666; font-size: 13px; border-left: 2px solid transparent; }
.toc a:hover, .toc li.on a { color: var(--primary); background: #f7faff; border-left-color: var(--primary); }
.toc-level-3 a { padding-left: 32px; }
.profile-body { padding: 0 20px 20px; margin-top: -28px; position: relative; }
.author-card .profile-head.overlap { justify-content: center; }
.author-actions { display: grid; gap: 9px; margin-top: 16px; }
.board-page-card { overflow: hidden; }
.cover-band { background-size: cover !important; }
.board-intro { padding: 16px 20px; }
.filter-bar input[type="search"] { width: min(260px, 100%); height: 30px; border: 1px solid #e3e6ec; border-radius: 6px; padding: 0 9px; }

.comment-children { margin: 10px 0 0 50px; }
.comment-children .reply-item { padding: 12px 0; border-top: 1px dashed #edf0f4; }
.comment-info.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 10px 0; }
.reply-editor .captcha-container, .auth-modal-panel .captcha-row { margin-top: 10px; }
.captcha-container img, .captcha-row img { height: 42px; border-radius: 8px; cursor: pointer; vertical-align: middle; }
.captcha-container input { height: 42px; border: 1px solid #dfe3eb; border-radius: 8px; padding: 0 11px; }
.reply-editor .form-tip { color: #98a1ae; font-size: 12px; }
#comment-post textarea.editor-area { width: 100%; min-height: 120px; border: 0; resize: vertical; padding: 0; background: transparent; }
.reply-editor .check-row { margin-top: 10px; }
.reply-sort { font-size: 13px; color: #98a1ae; }

/* emlog pagination markup */
.pagination a, .pagination span, .pagination em {
  min-width: 32px; height: 32px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; border: 1px solid #e3e6ec; background: #fff; color: #555666; font-size: 14px; font-style: normal;
}
.pagination a:hover { border-color: #9cc3f5; color: var(--primary); }
.pagination span { background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 80%, var(--accent))); border-color: transparent; color: #fff; }
.pagination em { border: 0; background: transparent; color: #c2c7d0; }

/* widgets */
.widget-content { padding: 4px 20px 16px; }
.wg-user { color: inherit; }
.wg-user .count { color: #98a1ae; font-size: 12px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 20px 16px; }
.tag-cloud i { font-style: normal; color: #b3bac4; margin-left: 3px; }
.notice-row { cursor: default; }
.side-search { padding: 12px 20px 16px; }
.side-select { width: calc(100% - 40px); margin: 12px 20px 16px; height: 36px; }
.menu-list a { color: inherit; }
.promo-card.has-image::before { content: ""; position: absolute; inset: 0; background: var(--promo-image) center/cover; opacity: .17; }
.promo-card.has-image > * { position: relative; }

.member-directory .member-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.member-grid .nm { justify-content: center; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.user-menu-side { order: -1; }
.sidebar-left { grid-template-columns: 300px minmax(0, 1fr); }
.sidebar-left .main { order: 2; }
.sidebar-left .aside { order: 1; }
.layout.narrow { max-width: 820px; grid-template-columns: minmax(0, 1fr); }

.password-card { width: min(420px, calc(100vw - 32px)); padding: 30px 26px; text-align: center; }
.password-card h1 { font-size: 21px; }
.password-card p { color: #646a73; font-size: 14px; margin: 8px 0 20px; }
.password-card .input { margin-bottom: 12px; }

/* authentication modal */
.auth-modal-mask { position: fixed; inset: 0; z-index: 998; background: rgba(18,18,18,.52); }
.auth-modal { position: fixed; z-index: 999; left: 50%; top: 50%; transform: translate(-50%, -48%); width: min(430px, calc(100vw - 32px)); }
.auth-modal-card { position: relative; background: #fff; border-radius: 16px; padding: 28px 26px 24px; box-shadow: 0 18px 60px rgba(0,0,0,.24); }
.auth-modal-head h3 { font-size: 20px; }
.auth-modal-head p { color: #8a9099; font-size: 13px; margin-top: 5px; }
.auth-modal-close { position: absolute; top: 12px; right: 14px; width: 30px; height: 30px; border: 0; border-radius: 50%; font-size: 22px; line-height: 1; color: #8590a6; background: #f5f6f8; cursor: pointer; }
.auth-modal-alert { display: none; margin: 12px 0; padding: 9px 11px; border-radius: 8px; background: #fff1f0; color: #d5392e; font-size: 13px; }
.auth-modal-alert.show { display: block; }
.auth-modal-alert.success { background: #eafaf1; color: #0aa870; }
.auth-modal-panel input:not([type="checkbox"]) { width: 100%; height: 42px; margin-top: 10px; border: 1px solid #dfe3eb; border-radius: 8px; padding: 0 12px; background: #fff; color: inherit; }
.auth-modal-panel .btn-block { margin-top: 16px; }
.auth-links { display: flex; justify-content: space-between; margin-top: 13px; font-size: 13px; }
.auth-links a { color: var(--primary); }
.captcha-row { display: flex; gap: 8px; align-items: stretch; }
.captcha-row input { flex: 1; }
.code-btn { width: 112px; flex-shrink: 0; }
.scroll-fix { overflow: hidden; }

/* toast */
.forum-toast { position: fixed; z-index: 1100; left: 50%; bottom: 82px; transform: translate(-50%, 16px); padding: 9px 15px; border-radius: 18px; background: #121212; color: #fff; font-size: 13px; opacity: 0; transition: .22s; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.forum-toast.show { transform: translate(-50%, 0); opacity: 1; }
.forum-toast.error { background: #d5392e; }
.forum-toast.success { background: #0aa870; }

/* dark mode */
[data-theme="dark"] {
  --bg: #121417;
  --text: #e6eaef;
}
[data-theme="dark"] body, [data-theme="dark"] .pcontent, [data-theme="dark"] .markdown { background: var(--bg); color: #d9dde5; }
[data-theme="dark"] .navbar, [data-theme="dark"] .card, [data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .stat-mini, [data-theme="dark"] .bcard, [data-theme="dark"] .mini-card,
[data-theme="dark"] .pg, [data-theme="dark"] .neighbor-card, [data-theme="dark"] .auth-modal-card { background: #191d24 !important; border-color: #30353f !important; color: #d9dde5 !important; }
[data-theme="dark"] .notice-bar { background: linear-gradient(90deg, rgba(10,108,255,.18), rgba(24,200,242,.12)); border-color: #30405a; color: #b9cbdf; }
[data-theme="dark"] .hero-card { background: linear-gradient(135deg, rgba(10,108,255,.18), rgba(24,200,242,.10)); }
[data-theme="dark"] .hero-card p { color: #a8b2bf; }
[data-theme="dark"] .tag, [data-theme="dark"] .bsub { background: #262c36; }
[data-theme="dark"] .tag:hover, [data-theme="dark"] .bsub:hover { background: #30405a; }
[data-theme="dark"] .feed-excerpt, [data-theme="dark"] .feed-meta, [data-theme="dark"] .pmeta,
[data-theme="dark"] .stat-cap, [data-theme="dark"] .crumb, [data-theme="dark"] .brow-desc,
[data-theme="dark"] .profile-desc, [data-theme="dark"] .wg-row .n, [data-theme="dark"] .list-head span { color: #96a0af !important; }
[data-theme="dark"] .feed-title, [data-theme="dark"] .phead h1, [data-theme="dark"] .card-head h2,
[data-theme="dark"] .uname, [data-theme="dark"] .profile-name, [data-theme="dark"] .stat-num,
[data-theme="dark"] .brow-name, [data-theme="dark"] .cat-head h2 { color: #ecEFF3 !important; }
[data-theme="dark"] .nav-link, [data-theme="dark"] .dd-item, [data-theme="dark"] .tag,
[data-theme="dark"] .bsub, [data-theme="dark"] .toc a, [data-theme="dark"] .menu-item { color: #c3cad4; }
[data-theme="dark"] .nav-link:hover, [data-theme="dark"] .dd-item:hover, [data-theme="dark"] .tab.active { background: #232833; }
[data-theme="dark"] .markdown blockquote, [data-theme="dark"] .markdown th { background: #22262e; color: #aab2bd; }
[data-theme="dark"] .markdown code { background: #30353f; color: #ffb4a8; }
[data-theme="dark"] input, [data-theme="dark"] textarea, [data-theme="dark"] select,
[data-theme="dark"] .auth-modal-panel input:not([type="checkbox"]), [data-theme="dark"] .filter-bar input[type="search"] { background: #20242c !important; border-color: #383f4a !important; color: #e6eaef !important; }
[data-theme="dark"] .icon-moon { display: none; }

#back-to-top { display: none; }
.side-toolbar { position: fixed; right: 18px; bottom: 24px; z-index: 90; display: grid; gap: 8px; }
.side-btn { width: 38px; height: 38px; border: 1px solid #e3e6ec; border-radius: 50%; background: #fff; color: #555666; font-size: 18px; cursor: pointer; box-shadow: 0 5px 14px rgba(0,0,0,.07); }
.side-btn:hover { color: var(--primary); border-color: #9cc3f5; }
.side-toolbar.show-back #back-to-top { display: block; }
.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: inline; }

.footer-about { color: #8590a6; }
.footer-nav a { display: inline-block; }
.copyright { margin-top: 6px; }
.footer-info { margin-top: 8px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .logo-page { display: none; }
  .nav-menu { position: fixed; z-index: 99; left: 0; right: 0; top: 56px; margin: 0; padding: 10px 16px 16px; background: #fff; border-bottom: 1px solid #ebebeb; transform: translateY(-130%); transition: .22s; max-height: calc(100vh - 56px); overflow: auto; }
  .nav-menu.show { transform: translateY(0); }
  .nav-list { align-items: stretch; flex-direction: column; gap: 3px; }
  .dropdown-menu { position: static; display: none; width: auto; box-shadow: none; border: 0; border-left: 2px solid #e3e6ec; border-radius: 0; margin: 2px 0 4px 14px; }
  .dropdown-menu.open { display: block; }
  .submit-link { position: fixed; right: 14px; bottom: 18px; z-index: 91; height: 40px; border-radius: 20px; box-shadow: 0 8px 22px rgba(10,108,255,.28); }
  .hero-card { grid-template-columns: 1fr; }
  .hero-image { width: 100%; }
  .feed-cards { grid-template-columns: 1fr; }
  .right-meta { flex-basis: 100%; margin-left: 0; }
  .neighbor-posts { grid-template-columns: 1fr; }
  .member-directory .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-menu-side { order: 0; }
  .sidebar-left { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .layout { width: calc(100% - 20px); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .member-directory .member-grid { grid-template-columns: 1fr; }
  .feed-item { align-items: flex-start; }
  .pcontent.markdown { padding: 16px; font-size: 15px; }
  .comment-info.form-grid { grid-template-columns: 1fr; }
  .auth-links { flex-direction: column; gap: 7px; }
}

/* ---- v1.1 前台发帖 / 独立登录注册 / 签到补充 ---- */
.auth-alert { border-radius: 8px; font-size: 13px; margin-bottom: 16px; }
.menu-item a { color: inherit; display: flex; align-items: center; gap: 10px; width: 100%; }
.menu-item a:hover { color: var(--primary, #0a6cff); }
.pwd-meter.strong i.on { background: #0aa870; }
.checkin .btn[disabled] { cursor: not-allowed; opacity: .85; }
.captcha-img { cursor: pointer; }
.front-post-form .ed-bar span { user-select: none; }

/* ---- v1.2 数据大屏 / 发帖页增强 ---- */
.trend-chart { display: flex; align-items: flex-end; justify-content: space-around; gap: 10px; padding: 20px 20px 14px; min-height: 180px; }
.trend-col { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 44px; }
.trend-col b { font-size: 13px; color: #555666; }
.trend-col i { width: 26px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent, #18c8f2), var(--primary, #0a6cff)); transition: height .4s; }
.trend-col:last-child i { background: linear-gradient(180deg, #ffb95e, #ff9a2e); }
.trend-col span { font-size: 11px; color: #98a1ae; }
.dist-list { padding: 14px 20px 18px; display: grid; gap: 12px; }
.dist-row { display: grid; grid-template-columns: 96px 1fr 52px; align-items: center; gap: 12px; font-size: 13px; }
.dist-row .dn { color: #555666; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.dist-row .dbar { height: 10px; background: #eef1f6; border-radius: 5px; overflow: hidden; }
.dist-row .dbar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--primary, #0a6cff), var(--accent, #18c8f2)); }
.dist-row b { color: #121212; font-weight: 600; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dash-table th { text-align: left; padding: 11px 20px; color: #8a9099; font-weight: 400; border-bottom: 1px solid #f0f2f5; white-space: nowrap; }
.dash-table td { padding: 12px 20px; border-bottom: 1px solid #f6f7f9; vertical-align: middle; }
.dash-table .dt-title a { font-weight: 600; color: #121212; }
.dash-table .dt-title a:hover { color: var(--primary, #0a6cff); }
.dash-table .dt-title .badge { margin-left: 6px; }
.dash-table .dt-acts { white-space: nowrap; }
.dash-table .dt-acts .btn + .btn { margin-left: 6px; }
.dash-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) {
  .dash-duo { grid-template-columns: 1fr; }
  .dash-table th:nth-child(3), .dash-table td:nth-child(3) { display: none; }
}
.cover-preview { margin-top: 10px; }
.cover-preview img { max-width: 280px; max-height: 160px; object-fit: cover; border-radius: 10px; border: 1px solid #ebebeb; }

/* ---- v1.3 视觉升级：SVG 图标体系 / 版块选择卡片 / 微动效 ---- */
.ficon { display: block; }
.bico .ficon, .board-icon .ficon { color: #fff; }
.stat-ico .ficon { color: #fff; }
.bsel-ico .ficon { color: var(--primary, #0a6cff); }

/* 版块选择卡片（发帖页） */
.bsel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.bsel { position: relative; display: flex; align-items: center; gap: 9px; padding: 11px 12px; border: 1px solid #e3e6ec; border-radius: 10px; cursor: pointer; transition: .15s; background: #fff; user-select: none; }
.bsel:hover { border-color: #9cc3f5; background: #fafcff; transform: translateY(-1px); }
.bsel input { position: absolute; opacity: 0; pointer-events: none; }
.bsel-ico { width: 34px; height: 34px; border-radius: 9px; background: rgba(10,108,255,.08); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: .15s; }
.bsel-name { font-size: 13.5px; font-weight: 500; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bsel.is-child .bsel-ico { background: rgba(0,181,120,.10); }
.bsel.is-child .bsel-ico .ficon { color: #0aa870; }
.bsel.is-child .bsel-name::before { content: "┆ "; color: #c2c7d0; }
.bsel:has(input:checked) { border-color: var(--primary, #0a6cff); background: #f0f6ff; box-shadow: 0 0 0 3px rgba(10,108,255,.10); }
.bsel:has(input:checked) .bsel-ico { background: var(--primary, #0a6cff); }
.bsel:has(input:checked) .bsel-ico .ficon { color: #fff; }
.bsel:has(input:checked)::after { content: "✓"; position: absolute; top: -7px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--primary, #0a6cff); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }

/* 入场微动效 */
.main > * { animation: forumFadeUp .45s ease both; }
.main > *:nth-child(2) { animation-delay: .05s; }
.main > *:nth-child(3) { animation-delay: .1s; }
.main > *:nth-child(n+4) { animation-delay: .15s; }
@keyframes forumFadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .main > * { animation: none; } }

/* 细节质感 */
.card { box-shadow: 0 1px 2px rgba(18,18,18,.03); }
.tab .cnt { background: #f2f4f8; border-radius: 10px; padding: 0 7px; line-height: 17px; margin-left: 3px; }
.tab.active .cnt { background: #e8f3ff; color: var(--primary, #056de8); }
.feed-title { letter-spacing: .1px; }
.empty h1, .empty h2 { font-size: 18px; margin-bottom: 6px; color: #555666; }
