/* ============================================================
   80wower 论坛样式 — 现代深色 / 与站点主题统一
   ============================================================ */

/* 站点各页面自带 body 背景，论坛页面统一补上同款深色底 */
body.forum {
    min-height: 100vh;
    color: #d8d8d8;
    background-color: #12161f;
    background-image:
        radial-gradient(1000px 700px at -10% 35%, rgba(59, 130, 246, .22), transparent 65%),
        radial-gradient(800px 600px at -5% 85%, rgba(124, 58, 237, .18), transparent 70%),
        linear-gradient(180deg, #181e2a 0%, #12161f 45%, #0a0d14 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

.f-wrap {
    --f-gold: #f2cf5b;
    --f-gold-dim: #c9a227;
    --f-panel: rgba(15, 20, 30, .74);
    --f-panel-2: rgba(20, 26, 38, .82);
    --f-panel-3: rgba(28, 35, 50, .9);
    --f-line: rgba(201, 162, 39, .16);
    --f-line-2: rgba(255, 255, 255, .07);
    --f-text: #d9dde6;
    --f-dim: #8d96a8;
    --f-faint: #667089;
    --f-blue: #4b8ef7;
    --f-green: #45c98a;
    --f-red: #ef5f6b;
    --f-purple: #a06bff;
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 104px 16px 72px;
    color: var(--f-text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    line-height: 1.65;
}

@media (max-width: 768px) {
    .f-wrap { padding: 84px 10px 48px; }
}

.f-wrap * { box-sizing: border-box; }

/* ---------- Hero ---------- */
.f-hero {
    position: relative;
    border: 1px solid var(--f-line);
    border-radius: 16px;
    background:
        radial-gradient(900px 260px at 8% -40%, rgba(242, 207, 91, .14), transparent 62%),
        radial-gradient(700px 240px at 92% -30%, rgba(75, 142, 247, .16), transparent 62%),
        var(--f-panel);
    padding: 26px 26px 22px;
    margin-bottom: 18px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.f-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .18));
    pointer-events: none;
}

.f-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.f-hero h1 {
    margin: 0 0 6px;
    font-family: 'Cinzel', serif;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    letter-spacing: .5px;
    background: linear-gradient(92deg, #fff3c4 0%, var(--f-gold) 45%, #b98f1c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.f-hero p {
    margin: 0;
    color: var(--f-dim);
    font-size: 13.5px;
    max-width: 640px;
}

.f-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.f-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
    position: relative;
    z-index: 1;
}

.f-stat {
    flex: 1 1 130px;
    border: 1px solid var(--f-line-2);
    background: rgba(0, 0, 0, .22);
    border-radius: 11px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 120px;
}
.f-stat i { font-size: 17px; color: var(--f-gold); opacity: .9; }
.f-stat b { display: block; font-size: 17px; font-weight: 700; color: #fff; line-height: 1.2; }
.f-stat span { display: block; font-size: 11px; color: var(--f-faint); letter-spacing: .3px; }

/* ---------- 按钮 ---------- */
.f-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 17px;
    border-radius: 9px;
    border: 1px solid var(--f-line);
    background: rgba(255, 255, 255, .045);
    color: var(--f-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all .18s ease;
    white-space: nowrap;
    line-height: 1.3;
}
.f-btn:hover { background: rgba(255, 255, 255, .1); border-color: rgba(201, 162, 39, .45); color: #fff; transform: translateY(-1px); }
.f-btn i { font-size: 12px; }

.f-btn-gold {
    background: linear-gradient(135deg, #f4d469, #c9a227);
    border-color: #d8b83d;
    color: #221a00;
    box-shadow: 0 4px 14px rgba(201, 162, 39, .22);
}
.f-btn-gold:hover { background: linear-gradient(135deg, #ffe695, #e0b933); color: #1a1400; box-shadow: 0 6px 20px rgba(201, 162, 39, .34); }

.f-btn-ghost { background: transparent; }
.f-btn-danger { border-color: rgba(239, 95, 107, .35); color: #ff9aa3; }
.f-btn-danger:hover { background: rgba(239, 95, 107, .14); border-color: rgba(239, 95, 107, .6); color: #ffb3ba; }
.f-btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 7px; }
.f-btn[disabled], .f-btn.f-disabled { opacity: .45; pointer-events: none; }

/* ---------- 卡片 ---------- */
.f-card {
    border: 1px solid var(--f-line);
    border-radius: 14px;
    background: var(--f-panel);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    overflow: hidden;
    margin-bottom: 16px;
}

.f-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--f-line-2);
    background: rgba(0, 0, 0, .16);
    flex-wrap: wrap;
}
.f-card-head h2, .f-card-head h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .4px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 9px;
}
.f-card-head h2 i, .f-card-head h3 i { color: var(--f-gold); font-size: 13px; }
.f-card-body { padding: 18px; }

/* ---------- 两栏布局 ---------- */
.f-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 1024px) { .f-layout { grid-template-columns: minmax(0, 1fr); } .f-side { display: none; } }
.f-side { position: sticky; top: 96px; }
@media (max-width: 1024px) { .f-side { position: static; display: block; } }

/* ---------- 分类 / 版块 ---------- */
.f-cat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--f-gold);
    background: linear-gradient(90deg, rgba(201, 162, 39, .11), transparent 70%);
    border-bottom: 1px solid var(--f-line-2);
}
.f-cat-title i { font-size: 13px; }
.f-cat-title small { margin-left: auto; text-transform: none; letter-spacing: 0; color: var(--f-faint); font-weight: 500; font-size: 11.5px; }

.f-board {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--f-line-2);
    text-decoration: none;
    color: inherit;
    transition: background .16s ease;
    position: relative;
}
.f-board:last-child { border-bottom: none; }
.f-board:hover { background: rgba(255, 255, 255, .035); }
.f-board:hover .f-board-name { color: var(--f-gold); }
.f-board:hover .f-board-ico { transform: scale(1.06); border-color: rgba(242, 207, 91, .5); }

.f-board-ico {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: grid; place-items: center;
    font-size: 17px;
    color: var(--f-gold);
    background: linear-gradient(160deg, rgba(242, 207, 91, .16), rgba(242, 207, 91, .04));
    border: 1px solid var(--f-line);
    transition: all .18s ease;
}

.f-board-name { font-size: 14.5px; font-weight: 700; color: #eef1f6; transition: color .16s; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.f-board-desc { font-size: 12.5px; color: var(--f-faint); margin-top: 2px; }
.f-board-meta { text-align: right; font-size: 11.5px; color: var(--f-faint); min-width: 148px; white-space: nowrap; }
.f-board-meta b { color: var(--f-dim); font-weight: 600; }
.f-board-last { color: var(--f-dim); display: inline-flex; align-items: center; gap: 5px; max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
.f-board-last:hover { color: var(--f-gold); }

.f-tag-lock { font-size: 10px; padding: 1px 7px; border-radius: 20px; border: 1px solid rgba(239, 95, 107, .35); color: #ff98a1; background: rgba(239, 95, 107, .1); font-weight: 600; }
.f-tag-private { font-size: 10px; padding: 1px 7px; border-radius: 20px; border: 1px solid rgba(160, 107, 255, .35); color: #c6a6ff; background: rgba(160, 107, 255, .1); font-weight: 600; }

@media (max-width: 640px) {
    .f-board { grid-template-columns: 40px minmax(0, 1fr); gap: 11px; padding: 12px 14px; }
    .f-board-ico { width: 40px; height: 40px; font-size: 15px; border-radius: 10px; }
    .f-board-meta { display: none; }
}

/* ---------- 主题列表 ---------- */
.f-thread {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 74px 74px 172px;
    gap: 12px;
    align-items: center;
    padding: 13px 18px;
    border-bottom: 1px solid var(--f-line-2);
    text-decoration: none;
    color: inherit;
    transition: background .16s;
}
.f-thread:last-child { border-bottom: none; }
.f-thread:hover { background: rgba(255, 255, 255, .035); }
.f-thread:hover .f-thread-title { color: var(--f-gold); }
.f-thread.is-pinned { background: rgba(242, 207, 91, .035); }
.f-thread.is-pinned:hover { background: rgba(242, 207, 91, .065); }

.f-ava {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(201, 162, 39, .35);
    background: #1a2030;
    flex-shrink: 0;
    display: block;
}
.f-ava-sm { width: 30px; height: 30px; border-width: 1px; }
.f-ava-lg { width: 74px; height: 74px; border-width: 2px; }

.f-thread-main { min-width: 0; }
.f-thread-title {
    font-size: 14px;
    font-weight: 600;
    color: #eef1f6;
    transition: color .16s;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    line-height: 1.45;
    word-break: break-word;
}
.f-thread-sub { font-size: 11.5px; color: var(--f-faint); margin-top: 3px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.f-thread-sub a { color: var(--f-dim); text-decoration: none; }
.f-thread-sub a:hover { color: var(--f-gold); }

.f-thread-num { text-align: center; font-size: 13px; color: var(--f-dim); font-weight: 600; }
.f-thread-num span { display: block; font-size: 10px; color: var(--f-faint); font-weight: 400; margin-top: -2px; }
.f-thread-last { text-align: right; font-size: 11.5px; color: var(--f-faint); overflow: hidden; }
.f-thread-last .f-last-name { color: var(--f-dim); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-thread:hover .f-last-name { color: var(--f-gold); }

@media (max-width: 860px) {
    .f-thread { grid-template-columns: 34px minmax(0, 1fr) 58px; gap: 10px; padding: 12px 14px; }
    .f-ava { width: 34px; height: 34px; }
    .f-thread-num:nth-of-type(1) { display: none; }
    .f-thread-last { display: none; }
}

/* 徽章 */
.f-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 1.5px 7px;
    border-radius: 20px;
    letter-spacing: .3px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.f-pill i { font-size: 9px; }
.p-pin  { background: rgba(242, 207, 91, .16); color: var(--f-gold); border: 1px solid rgba(242, 207, 91, .35); }
.p-feat { background: rgba(69, 201, 138, .14); color: #6ee0ac; border: 1px solid rgba(69, 201, 138, .32); }
.p-lock { background: rgba(239, 95, 107, .12); color: #ff98a1; border: 1px solid rgba(239, 95, 107, .3); }
.p-hot  { background: rgba(255, 138, 76, .14); color: #ffab7a; border: 1px solid rgba(255, 138, 76, .32); }
.p-cat  { background: rgba(75, 142, 247, .13); color: #8fb9ff; border: 1px solid rgba(75, 142, 247, .3); }

/* ---------- 工具栏 / 筛选 ---------- */
.f-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--f-line-2);
    flex-wrap: wrap;
    background: rgba(0, 0, 0, .18);
}

.f-tabs { display: flex; gap: 4px; background: rgba(0, 0, 0, .28); padding: 3px; border-radius: 9px; border: 1px solid var(--f-line-2); }
.f-tab {
    padding: 5px 13px;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--f-dim);
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
}
.f-tab:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.f-tab.on { background: rgba(242, 207, 91, .16); color: var(--f-gold); box-shadow: inset 0 0 0 1px rgba(242, 207, 91, .28); }

.f-search-box { flex: 1; min-width: 180px; position: relative; }
.f-search-box input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    border-radius: 9px;
    border: 1px solid var(--f-line-2);
    background: rgba(0, 0, 0, .3);
    color: var(--f-text);
    font-size: 13px;
    outline: none;
    transition: border-color .16s;
    font-family: inherit;
}
.f-search-box input:focus { border-color: rgba(242, 207, 91, .5); }
.f-search-box i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--f-faint); font-size: 12px; }

/* ---------- 帖子 ---------- */
.f-post {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    border-bottom: 1px solid var(--f-line-2);
    scroll-margin-top: 100px;
}
.f-post:last-child { border-bottom: none; }
.f-post:target, .f-post.f-flash { background: rgba(242, 207, 91, .05); }

.f-post-side {
    padding: 18px 14px;
    border-right: 1px solid var(--f-line-2);
    text-align: center;
    background: rgba(0, 0, 0, .14);
}
.f-post-side .f-ava-lg { margin: 0 auto 9px; }
.f-post-user { font-size: 13px; font-weight: 700; color: var(--f-gold); word-break: break-all; text-decoration: none; display: block; }
.f-post-user:hover { text-decoration: underline; }
.f-post-rank { font-size: 10.5px; color: var(--f-faint); margin-top: 4px; display: inline-flex; align-items: center; gap: 4px; }
.f-post-mini { font-size: 11px; color: var(--f-faint); margin-top: 8px; line-height: 1.9; text-align: left; }
.f-post-mini div { display: flex; justify-content: space-between; gap: 6px; }
.f-post-mini b { color: var(--f-dim); font-weight: 600; }

.f-post-main { padding: 16px 20px 18px; min-width: 0; }
.f-post-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 11px;
    margin-bottom: 13px;
    border-bottom: 1px dashed var(--f-line-2);
    font-size: 11.5px;
    color: var(--f-faint);
    flex-wrap: wrap;
}
.f-post-head .f-post-no { font-weight: 700; color: var(--f-dim); }
.f-post-head a { color: var(--f-dim); text-decoration: none; }
.f-post-head a:hover { color: var(--f-gold); }
.f-post-actions { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }

.f-act {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 7px;
    font-size: 11.5px;
    color: var(--f-dim);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all .14s;
    font-family: inherit;
}
.f-act:hover { background: rgba(255, 255, 255, .07); color: #fff; border-color: var(--f-line-2); }
.f-act.on { color: var(--f-gold); background: rgba(242, 207, 91, .12); border-color: rgba(242, 207, 91, .3); }
.f-act.liked { color: var(--f-gold); }

.f-content { font-size: 14.2px; line-height: 1.78; color: var(--f-text); word-wrap: break-word; overflow-wrap: anywhere; }
.f-content p { margin: 0 0 11px; }
.f-content p:last-child { margin-bottom: 0; }
.f-content a { color: #7fb0ff; text-decoration: none; border-bottom: 1px solid rgba(127, 176, 255, .3); }
.f-content a:hover { color: #a9caff; border-bottom-color: rgba(169, 202, 255, .7); }
.f-content strong { color: #fff; font-weight: 700; }
.f-content em { color: #c9d2e2; }
.f-content del { color: var(--f-faint); }
.f-content img.f-md-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--f-line-2);
    margin: 8px 0;
    cursor: zoom-in;
    display: block;
    transition: border-color .16s;
}
.f-content img.f-md-img:hover { border-color: rgba(242, 207, 91, .45); }
.f-content .f-md-h { margin: 18px 0 9px; color: #fff; font-weight: 700; line-height: 1.35; }
.f-content h1.f-md-h { font-size: 21px; }
.f-content h2.f-md-h { font-size: 18px; }
.f-content h3.f-md-h { font-size: 16px; }
.f-content h4.f-md-h { font-size: 14.5px; }
.f-content .f-md-hr { border: none; border-top: 1px solid var(--f-line-2); margin: 18px 0; }
.f-content .f-md-quote {
    margin: 10px 0;
    padding: 10px 15px;
    border-left: 3px solid var(--f-gold-dim);
    background: rgba(242, 207, 91, .05);
    border-radius: 0 9px 9px 0;
    color: #c6cddb;
}
.f-content .f-md-list { margin: 9px 0; padding-left: 22px; }
.f-content .f-md-list li { margin: 4px 0; }
.f-code {
    position: relative;
    background: #0b0e15;
    border: 1px solid var(--f-line-2);
    border-radius: 10px;
    padding: 13px 15px;
    overflow-x: auto;
    margin: 11px 0;
    font-size: 12.6px;
    line-height: 1.6;
}
.f-code code { font-family: 'JetBrains Mono', Consolas, Monaco, monospace; color: #b8c4d9; white-space: pre; }
.f-code::before {
    content: attr(data-lang);
    position: absolute; top: 0; right: 0;
    padding: 1px 9px;
    font-size: 10px;
    color: var(--f-faint);
    background: rgba(255, 255, 255, .05);
    border-radius: 0 9px 0 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.f-inline-code {
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--f-line-2);
    border-radius: 5px;
    padding: 1px 6px;
    font-family: 'JetBrains Mono', Consolas, Monaco, monospace;
    font-size: 12.6px;
    color: #ffd88a;
}
.f-mention { color: var(--f-gold); font-weight: 600; text-decoration: none; border-bottom: 1px dashed rgba(242, 207, 91, .5); }

.f-quote-box {
    border-left: 3px solid rgba(75, 142, 247, .5);
    background: rgba(75, 142, 247, .07);
    border-radius: 0 9px 9px 0;
    padding: 9px 13px;
    margin-bottom: 13px;
    font-size: 12.8px;
    color: var(--f-dim);
}
.f-quote-box b { color: #8fb9ff; display: block; margin-bottom: 2px; font-size: 11.5px; }

.f-sig { margin-top: 14px; padding-top: 11px; border-top: 1px dashed var(--f-line-2); font-size: 12px; color: var(--f-faint); line-height: 1.6; }

@media (max-width: 720px) {
    .f-post { grid-template-columns: minmax(0, 1fr); }
    .f-post-side {
        border-right: none;
        border-bottom: 1px solid var(--f-line-2);
        display: flex;
        align-items: center;
        gap: 11px;
        text-align: left;
        padding: 11px 14px;
    }
    .f-post-side .f-ava-lg { width: 38px; height: 38px; margin: 0; }
    .f-post-mini { display: none; }
    .f-post-rank { margin: 0; }
    .f-post-main { padding: 13px 14px 16px; }
}

/* ---------- 编辑器 ---------- */
.f-editor { border: 1px solid var(--f-line-2); border-radius: 11px; overflow: hidden; background: rgba(0, 0, 0, .26); }
.f-editor-bar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px;
    border-bottom: 1px solid var(--f-line-2);
    background: rgba(255, 255, 255, .028);
    flex-wrap: wrap;
}
.f-editor-bar button {
    width: 30px; height: 30px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--f-dim);
    cursor: pointer;
    font-size: 12.5px;
    transition: all .14s;
    display: grid; place-items: center;
}
.f-editor-bar button:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.f-editor-bar .f-sep { width: 1px; height: 18px; background: var(--f-line-2); margin: 0 5px; }

.f-editor textarea {
    width: 100%;
    min-height: 190px;
    border: none;
    background: transparent;
    color: var(--f-text);
    padding: 13px 15px;
    font-size: 14px;
    line-height: 1.7;
    resize: vertical;
    outline: none;
    font-family: inherit;
    display: block;
}
.f-editor textarea::placeholder { color: var(--f-faint); }

.f-editor-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 13px;
    border-top: 1px solid var(--f-line-2);
    font-size: 11.5px;
    color: var(--f-faint);
    flex-wrap: wrap;
}
.f-editor-foot .f-hint kbd {
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--f-line-2);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 10.5px;
    font-family: inherit;
}

.f-preview {
    display: none;
    padding: 14px 16px;
    min-height: 190px;
    font-size: 14.2px;
    line-height: 1.78;
}
.f-preview.on { display: block; }

/* 表单元素 */
.f-field { margin-bottom: 15px; }
.f-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--f-dim); margin-bottom: 7px; letter-spacing: .3px; }
.f-label .req { color: var(--f-red); }
.f-input, .f-select {
    width: 100%;
    padding: 10px 13px;
    border-radius: 9px;
    border: 1px solid var(--f-line-2);
    background: rgba(0, 0, 0, .3);
    color: var(--f-text);
    font-size: 13.5px;
    outline: none;
    transition: border-color .16s;
    font-family: inherit;
}
.f-input:focus, .f-select:focus { border-color: rgba(242, 207, 91, .5); }
.f-select option { background: #151a24; color: var(--f-text); }
.f-help { font-size: 11.5px; color: var(--f-faint); margin-top: 5px; }

/* ---------- 提示条 ---------- */
.f-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 15px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 14px;
    border: 1px solid;
    line-height: 1.55;
}
.f-alert i { margin-top: 2px; font-size: 13px; }
.f-alert-ok   { background: rgba(69, 201, 138, .1);  border-color: rgba(69, 201, 138, .3);  color: #8ee9bb; }
.f-alert-warn { background: rgba(242, 207, 91, .1);  border-color: rgba(242, 207, 91, .32); color: #f5dd94; }
.f-alert-err  { background: rgba(239, 95, 107, .1);  border-color: rgba(239, 95, 107, .32); color: #ffa7ae; }
.f-alert-info { background: rgba(75, 142, 247, .1);  border-color: rgba(75, 142, 247, .3);  color: #a5c6ff; }

/* ---------- 空状态 ---------- */
.f-empty {
    padding: 46px 20px;
    text-align: center;
    color: var(--f-faint);
    font-size: 13.5px;
}
.f-empty i { display: block; font-size: 34px; margin-bottom: 12px; opacity: .35; }

/* ---------- 分页 ---------- */
.f-pager {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 14px 16px;
    flex-wrap: wrap;
    justify-content: center;
    border-top: 1px solid var(--f-line-2);
}
.fp-btn {
    min-width: 33px;
    height: 33px;
    padding: 0 9px;
    border-radius: 8px;
    border: 1px solid var(--f-line-2);
    background: rgba(255, 255, 255, .035);
    color: var(--f-dim);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
}
.fp-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(201, 162, 39, .4); }
.fp-cur { background: rgba(242, 207, 91, .18); border-color: rgba(242, 207, 91, .45); color: var(--f-gold); }
.fp-off { opacity: .32; pointer-events: none; }
.fp-gap { color: var(--f-faint); padding: 0 2px; }
.fp-info { margin-left: 8px; font-size: 11.5px; color: var(--f-faint); }

/* ---------- 侧栏 ---------- */
.f-side .f-card { margin-bottom: 14px; }
.f-side-list { padding: 12px 14px; }
.f-side-item {
    display: flex;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--f-line-2);
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}
.f-side-item:last-child { border-bottom: none; }
.f-side-item .f-side-txt { min-width: 0; flex: 1; }
.f-side-item .f-side-title {
    font-size: 12.6px;
    font-weight: 600;
    color: var(--f-text);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .15s;
}
.f-side-item:hover .f-side-title { color: var(--f-gold); }
.f-side-item .f-side-meta { font-size: 10.8px; color: var(--f-faint); margin-top: 2px; }

.f-user-cloud { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px; }
.f-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px 3px 3px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid var(--f-line-2);
    font-size: 11.5px;
    color: var(--f-dim);
    text-decoration: none;
    transition: all .15s;
}
.f-user-chip:hover { background: rgba(242, 207, 91, .1); border-color: rgba(242, 207, 91, .3); color: var(--f-gold); }
.f-user-chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }

/* ---------- 面包屑 ---------- */
.f-crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--f-faint);
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.f-crumbs a { color: var(--f-dim); text-decoration: none; transition: color .15s; display: inline-flex; align-items: center; gap: 5px; }
.f-crumbs a:hover { color: var(--f-gold); }
.f-crumb-sep { font-size: 9px; opacity: .5; }

/* ---------- 图片灯箱 ---------- */
.f-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, .93);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    cursor: zoom-out;
    backdrop-filter: blur(4px);
}
.f-lightbox.on { display: flex; }
.f-lightbox img {
    max-width: 96vw;
    max-height: 92vh;
    border-radius: 8px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .8);
    object-fit: contain;
}
.f-lightbox .f-lb-close {
    position: absolute;
    top: 18px; right: 22px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    display: grid; place-items: center;
}

/* ---------- 通知 / 个人中心 ---------- */
.f-notice {
    display: flex;
    gap: 13px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--f-line-2);
    text-decoration: none;
    color: inherit;
    transition: background .15s;
    align-items: flex-start;
}
.f-notice:hover { background: rgba(255, 255, 255, .035); }
.f-notice.unread { background: rgba(242, 207, 91, .04); }
.f-notice.unread::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--f-gold);
    flex-shrink: 0;
    margin-top: 7px;
    box-shadow: 0 0 8px rgba(242, 207, 91, .6);
}
.f-notice-body { min-width: 0; flex: 1; }
.f-notice-title { font-size: 13.2px; font-weight: 600; color: #eef1f6; line-height: 1.5; }
.f-notice-snip { font-size: 12px; color: var(--f-faint); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-notice-time { font-size: 11px; color: var(--f-faint); white-space: nowrap; }

/* ---------- 提示气泡 ---------- */
.f-toast {
    position: fixed;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(20, 26, 38, .97);
    border: 1px solid var(--f-line);
    color: var(--f-text);
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 13px;
    z-index: 99998;
    opacity: 0;
    transition: all .25s ease;
    pointer-events: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .6);
}
.f-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 版务菜单 ---------- */
.f-menu-wrap { position: relative; display: inline-block; }
.f-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 168px;
    background: rgba(20, 26, 38, .98);
    border: 1px solid var(--f-line);
    border-radius: 10px;
    padding: 5px;
    z-index: 500;
    display: none;
    box-shadow: 0 14px 44px rgba(0, 0, 0, .7);
}
.f-menu.on { display: block; }
.f-menu button, .f-menu a {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 8px 11px;
    border: none;
    background: transparent;
    color: var(--f-dim);
    font-size: 12.5px;
    border-radius: 7px;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    font-family: inherit;
    transition: all .13s;
}
.f-menu button:hover, .f-menu a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.f-menu i { width: 14px; text-align: center; font-size: 11.5px; }
.f-menu .f-menu-danger { color: #ff9aa3; }
.f-menu .f-menu-danger:hover { background: rgba(239, 95, 107, .15); color: #ffb3ba; }

/* ---------- 滚动条 ---------- */
.f-wrap ::-webkit-scrollbar { width: 8px; height: 8px; }
.f-wrap ::-webkit-scrollbar-track { background: rgba(0, 0, 0, .2); }
.f-wrap ::-webkit-scrollbar-thumb { background: rgba(201, 162, 39, .3); border-radius: 6px; }
.f-wrap ::-webkit-scrollbar-thumb:hover { background: rgba(201, 162, 39, .5); }

/* ---------- 导航未读角标 ---------- */
.f-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    margin-left: 5px;
    border-radius: 9px;
    background: #ef5f6b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    vertical-align: 1px;
}

/* ===== 个人等级 + 管理标识 ===== */
.f-lv { display:inline-flex; align-items:center; gap:6px; flex-wrap:wrap; }
.f-lv-tag { font-size:10px; font-weight:800; color:#10141d; background:linear-gradient(135deg,#f2cf5b,#d4a938); padding:1px 6px; border-radius:5px; line-height:1.6; flex-shrink:0; }
.f-lv-rank { font-size:10.5px; display:inline-flex; align-items:center; gap:4px; white-space:nowrap; }
.f-lv-rank.rk-0 { color:#8b93a7; }
.f-lv-rank.rk-1 { color:#68d391; }
.f-lv-rank.rk-2 { color:#63b3ed; }
.f-lv-rank.rk-3 { color:#b794f4; }
.f-lv-rank.rk-4 { color:#f6ad55; }
.f-lv-rank.rk-5 { color:#f2cf5b; }
.f-lv-bar { flex:1 1 56px; min-width:46px; max-width:120px; height:4px; border-radius:99px; background:rgba(255,255,255,.09); overflow:hidden; }
.f-lv-bar i { display:block; height:100%; border-radius:99px; background:linear-gradient(90deg,#d4a938,#f2cf5b); transition:width .4s ease; }
.f-badge { display:inline-flex; align-items:center; gap:3px; font-size:10px; font-weight:700; padding:1px 7px; border-radius:99px; line-height:1.6; white-space:nowrap; flex-shrink:0; }
.f-badge.bg-owner { background:rgba(242,207,91,.16); color:#f2cf5b; border:1px solid rgba(242,207,91,.5); }
.f-badge.bg-mod   { background:rgba(96,165,250,.12); color:#85c0f9; border:1px solid rgba(96,165,250,.42); }

/* ===== BUG 反馈：已解决 / 待处理 ===== */
.f-pill.p-solved   { background: rgba(34,197,94,.13); color:#7ee2a8; border:1px solid rgba(74,222,128,.35); }
.f-pill.p-unsolved { background: rgba(220,38,38,.13); color:#ff9b9b; border:1px solid rgba(248,113,113,.38); }
.f-thread.is-unsolved .f-tt { color:#ff9b9b; }
