:root {
    --bg: #f5f7fb;
    --paper: #fff;
    --ink: #1e293b;
    --muted: #5d6d84;
    --soft-muted: #7b8ba1;
    --line: #e3e9f2;
    --brand: #4f46e5;
    --brand-2: #2563eb;
    --brand-soft: #eef2ff;
    --accent: #4f46e5;
    --shadow: 0 10px 32px rgba(30, 41, 59, .06);
    --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; overflow-x: hidden; }
body { margin: 0; background: radial-gradient(circle at 8% 0, #eef2ff 0, transparent 28rem), var(--bg); color: var(--ink); font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid rgba(79, 70, 229, .28); outline-offset: 3px; }
::selection { background: #dfe4ff; color: #312e81; }
a:hover { color: var(--brand); }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
input, textarea, select { width: 100%; border: 1px solid #dfe5ee; border-radius: 8px; background: #fff; color: var(--ink); padding: 10px 12px; outline: none; transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus, select:focus { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(79, 70, 229, .1); }
textarea { resize: vertical; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.4; }
.lf-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.lf-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.lf-icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; vertical-align: -4px; }
.lf-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.lf-topbar { background: #f8fafc; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.lf-topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 34px; }
.lf-notice { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lf-topbar-inner > div { display: flex; gap: 18px; }
.lf-masthead { display: flex; align-items: center; gap: 24px; min-height: 82px; }
.lf-brand { display: flex; align-items: center; gap: 11px; min-width: 250px; }
.lf-brand-mark { display: grid; place-items: center; width: 42px; height: 42px; background: linear-gradient(145deg, #6366f1, #4338ca); color: #fff; border-radius: 11px; box-shadow: 0 5px 14px rgba(79, 70, 229, .18); }
.lf-brand-mark .lf-icon { width: 25px; height: 25px; }
.lf-brand-logo { display: block; width: auto; max-width: 170px; height: 44px; object-fit: contain; }
.lf-brand strong { display: block; font-size: 22px; line-height: 1.3; letter-spacing: .3px; }
.lf-brand small { display: block; color: var(--soft-muted); font-size: 13px; letter-spacing: 1.6px; margin-top: 3px; }
.lf-head-ad { flex: 1; min-width: 0; text-align: center; overflow: hidden; }
.lf-head-ad img { max-height: 56px; margin: auto; }
.lf-account { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.lf-login { font-weight: 600; }
.lf-member-link { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.lf-member-link img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.lf-manage { font-size: 14px; color: var(--brand); }
.lf-menu-toggle { display: none; border: 0; background: transparent; font-size: 25px; line-height: 1; color: var(--brand); padding: 6px; }
.lf-nav-wrap { border-top: 1px solid var(--line); }
.lf-nav-row { display: flex; align-items: center; gap: 24px; min-height: 48px; }
.lf-nav { display: flex; align-items: center; gap: 30px; min-width: 0; overflow: auto; white-space: nowrap; scrollbar-width: none; }
.lf-nav a { height: 48px; display: flex; align-items: center; position: relative; font-size: 15px; color: #475569; }
.lf-nav a:hover, .lf-nav a.is-on { color: var(--brand); }
.lf-nav a.is-on::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--brand); border-radius: 3px 3px 0 0; }
.lf-search { margin-left: auto; display: flex; width: 225px; position: relative; }
.lf-search input { padding: 7px 34px 7px 12px; background: #f6f8fb; border-color: transparent; font-size: 14px; }
.lf-search button { position: absolute; right: 3px; top: 3px; width: 31px; height: 31px; border: 0; background: transparent; font-size: 22px; color: var(--muted); }
.lf-main { padding: 24px 0 56px; min-height: 60vh; }
.lf-main-column { display: grid; gap: 20px; min-width: 0; align-content: start; }
.lf-eyebrow { display: block; color: var(--brand); font-size: 13px; font-weight: 700; letter-spacing: 1.7px; margin-bottom: 7px; }
.lf-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; max-width: 100%; padding: 9px 18px; border: 1px solid #dfe5ee; border-radius: 9px; background: #fff; color: #475569; font-size: 15px; font-weight: 600; white-space: nowrap; transition: .2s; }
.lf-button:hover { border-color: #a5b4fc; color: var(--brand); background: #f8faff; }
.lf-button-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(79, 70, 229, .12); }
.lf-button-primary:hover { background: #4338ca; border-color: #4338ca; color: #fff; }
.lf-button-danger { color: #b91c1c; border-color: #fecaca; background: #fff; }
.lf-button-plain { border-color: transparent; background: transparent; box-shadow: none; }
.lf-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 22px; align-items: start; }
.lf-forum-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 132px; overflow: hidden; background: linear-gradient(120deg, #eef2ff 0%, #fff 52%, #eff6ff 100%); border: 1px solid #dfe5ff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.lf-forum-hero:after { content: ""; position: absolute; right: 110px; bottom: -76px; width: 180px; height: 180px; border: 28px solid rgba(79, 70, 229, .035); border-radius: 50%; pointer-events: none; }
.lf-forum-hero > * { position: relative; z-index: 1; }
.lf-hero-copy { display: flex; align-items: center; gap: 16px; min-width: 0; }
.lf-hero-symbol { display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; color: var(--brand); background: var(--brand-soft); border-radius: 13px; }
.lf-hero-symbol .lf-icon { width: 29px; height: 29px; }
.lf-forum-hero h1 { font-size: 23px; letter-spacing: .2px; }
.lf-forum-hero p { color: var(--muted); font-size: 15px; margin-top: 8px; max-width: 580px; }
.lf-forum-hero .lf-button { flex: 0 0 auto; min-height: 40px; padding-inline: 20px; }
.lf-section { margin: 0; min-width: 0; }
.lf-board-section, .lf-feed, .lf-user-panel, .lf-side-card, .lf-author-card, .lf-compose, .lf-page { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.lf-board-section, .lf-feed, .lf-user-panel { padding: 21px 22px; }
.lf-panel-head, .lf-side-title, .lf-section-head, .lf-feed-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.lf-panel-head h2, .lf-side-title h2, .lf-section-head h2, .lf-feed-head h2 { display: flex; align-items: center; gap: 8px; font-size: 20px; }
.lf-panel-head h2 .lf-icon, .lf-side-title h2 .lf-icon, .lf-section-head h2 .lf-icon, .lf-feed-head h2 .lf-icon { color: var(--brand); }
.lf-panel-head > span, .lf-panel-head > a, .lf-side-title > a { flex: 0 0 auto; color: var(--muted); font-size: 15px; }
.lf-board-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.lf-board-card { position: relative; display: flex; align-items: flex-start; gap: 13px; min-width: 0; min-height: 112px; overflow: hidden; background: linear-gradient(145deg, #fff, #fbfcff); border: 1px solid var(--line); border-radius: 12px; padding: 20px 17px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.lf-board-card:before { content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: linear-gradient(var(--brand), #818cf8); opacity: 0; transition: opacity .2s; }
.lf-board-card:hover:before { opacity: 1; }
.lf-board-card:hover { border-color: #c7d2fe; box-shadow: 0 6px 20px rgba(79, 70, 229, .07); transform: translateY(-1px); color: inherit; }
.lf-board-icon { display: grid; place-items: center; flex: 0 0 43px; width: 43px; height: 43px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.lf-board-icon .lf-icon { width: 24px; height: 24px; }
.lf-board-icon.is-large { width: 58px; height: 58px; flex-basis: 58px; border-radius: 13px; }
.lf-board-icon.is-large .lf-icon { width: 31px; height: 31px; }
.lf-board-info { display: block; min-width: 0; flex: 1; }
.lf-board-info strong { display: block; font-size: 16px; margin: 1px 0 6px; }
.lf-board-desc { display: block; color: var(--muted); font-size: 14px; line-height: 1.75; }
.lf-board-count { flex: 0 0 auto; min-width: 32px; padding: 3px 8px; background: #f6f8fc; border-radius: 6px; text-align: center; color: var(--muted); }
.lf-board-count b { display: block; color: #475569; font-size: 14px; line-height: 1.4; }
.lf-board-count small { font-size: 13px; }
.lf-filter-tabs, .lf-admin-tabs, .lf-admin-filter { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.lf-filter-tabs a, .lf-admin-tabs a, .lf-admin-filter a { display: inline-flex; padding: 5px 11px; border-radius: 6px; font-size: 13px; color: var(--muted); }
.lf-filter-tabs a.is-on, .lf-filter-tabs a:hover, .lf-admin-tabs a.is-on, .lf-admin-filter a.is-on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.lf-feed-head > div:first-child > p { margin-top: 4px; color: var(--soft-muted); font-size: 13px; }
.lf-table-wrap { width: 100%; }
.lf-topic-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.lf-topic-table th { padding: 10px 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fafbfe; color: var(--muted); font-size: 13px; font-weight: 500; text-align: left; }
.lf-topic-table th:first-child { width: auto; padding-left: 12px; border-radius: 6px 0 0 6px; }
.lf-topic-table th:nth-child(2) { width: 92px; text-align: center; }
.lf-topic-table th:last-child { width: 140px; padding-right: 12px; border-radius: 0 6px 6px 0; }
.lf-topic-row td { padding: 17px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lf-topic-row:last-child td { border-bottom: 0; }
.lf-topic-primary { padding-left: 12px !important; }
.lf-topic-main { min-width: 0; }
.lf-topic-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lf-topic-title > a { min-width: 0; font-size: 16px; font-weight: 650; line-height: 1.55; overflow-wrap: anywhere; }
.lf-topic-title > a:hover { color: var(--brand); }
.lf-topic-main > p { margin-top: 5px; color: var(--muted); font-size: 14px; line-height: 1.65; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.lf-topic-meta { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-top: 7px; color: var(--soft-muted); font-size: 13px; }
.lf-topic-meta > a:not(.lf-topic-avatar) { color: #6366f1; }
.lf-topic-avatar { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.lf-topic-avatar img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.lf-topic-stats { text-align: center; white-space: nowrap; color: var(--soft-muted); }
.lf-topic-stats span { display: inline-flex; align-items: baseline; gap: 3px; margin: 0 4px; }
.lf-topic-stats b { color: #475569; font-size: 14px; font-weight: 600; }
.lf-topic-stats small, .lf-topic-last small { font-size: 13px; }
.lf-topic-last { padding-right: 12px !important; text-align: right; }
.lf-topic-last a { display: block; color: #475569; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lf-topic-last time { display: block; margin-top: 3px; color: var(--soft-muted); font-size: 13px; white-space: nowrap; }
.lf-badge { display: inline-flex; align-items: center; flex: 0 0 auto; padding: 1px 6px; border-radius: 4px; background: #f1f5f9; color: #64748b; font-size: 13px; line-height: 1.7; font-style: normal; font-weight: 500; }
.lf-badge.is-top { background: #eef2ff; color: #4f46e5; }
.lf-badge.is-sort-top { background: #e0f2fe; color: #0369a1; }
.lf-badge.is-essence { background: #fff7ed; color: #c2410c; }
.lf-badge.is-featured { background: #fdf2f8; color: #be185d; }
.lf-badge.is-pending { background: #fef9c3; color: #854d0e; }
.lf-badge.is-rejected { background: #fee2e2; color: #b91c1c; }
.lf-sidebar { display: grid; gap: 17px; min-width: 0; }
.lf-side-card, .lf-author-card { padding: 19px; }
.lf-side-title { margin-bottom: 14px; }
.lf-side-title h2, .lf-side-card > h2 { font-size: 16px; }
.lf-side-card > h2 { margin-bottom: 12px; }
.lf-side-card > p { color: var(--muted); font-size: 14px; }
.lf-search-card form > p { margin-top: 10px; color: var(--soft-muted); font-size: 13px; line-height: 1.7; }
.lf-search-field { position: relative; display: block; }
.lf-search-field input { height: 39px; padding: 8px 38px 8px 12px; background: #f8fafc; border-color: #e2e8f0; font-size: 13px; }
.lf-search-field button { position: absolute; right: 4px; top: 4px; display: grid; place-items: center; width: 31px; height: 31px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--soft-muted); }
.lf-search-field button:hover { color: var(--brand); background: var(--brand-soft); }
.lf-search-field .lf-icon { width: 17px; height: 17px; }
.lf-board-nav { display: grid; }
.lf-board-nav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 10px 2px; border-bottom: 1px solid var(--line); color: #475569; font-size: 14px; }
.lf-board-nav a:last-child { border-bottom: 0; padding-bottom: 2px; }
.lf-board-nav a:hover, .lf-board-nav a.is-on { color: var(--brand); }
.lf-board-nav a > span { display: flex; align-items: center; gap: 7px; min-width: 0; }
.lf-board-nav a b { color: var(--soft-muted); font-size: 13px; font-weight: 500; }
.lf-board-nav a i { padding: 1px 5px; border-radius: 4px; background: var(--brand); color: #fff; font-size: 12px; font-style: normal; line-height: 1.7; }
.lf-side-stats { display: grid; gap: 11px; }
.lf-side-stats span { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; }
.lf-side-stats b { color: #334155; font-weight: 600; }
.lf-active-list { display: grid; }
.lf-active-list a { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.55; }
.lf-active-list a:first-child { padding-top: 0; }
.lf-active-list a:last-child { padding-bottom: 0; border-bottom: 0; }
.lf-active-list a > span { min-width: 0; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lf-active-list time { flex: 0 0 auto; color: var(--soft-muted); font-size: 13px; white-space: nowrap; margin-top: 2px; }
.lf-hot-list { list-style: none; padding: 0; margin: 0; }
.lf-hot-list li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lf-hot-list li:last-child { border: 0; }
.lf-hot-list li > span { font: 700 16px/1.5 Georgia, serif; color: #cbd5e1; min-width: 20px; }
.lf-hot-list li:nth-child(-n+3) > span { color: var(--brand); }
.lf-hot-list a { font-size: 14px; line-height: 1.55; }
.lf-hot-list small { display: block; color: var(--soft-muted); font-size: 13px; margin-top: 2px; }
.lf-essence-list, .lf-related-list { display: grid; }
.lf-essence-list a, .lf-related-list a { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.6; }
.lf-essence-list a:last-child, .lf-related-list a:last-child { border-bottom: 0; }
.lf-essence-list a span { color: #f97316; margin-right: 6px; font-size: 13px; }
.lf-new-members { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; }
.lf-new-members a { text-align: center; min-width: 0; }
.lf-new-members img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; margin: 0 auto 5px; }
.lf-new-members span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--muted); }
.lf-rules { padding-left: 17px; margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.lf-rules li { margin: 6px 0; }
.lf-pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 21px; flex-wrap: wrap; }
.lf-pager a, .lf-pager span { min-width: 33px; height: 33px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 13px; color: var(--muted); }
.lf-pager a:hover { border-color: #a5b4fc; color: var(--brand); }
.lf-pager .current { background: var(--brand); border-color: var(--brand); color: #fff; }
.lf-ad { position: relative; background: #fff; border: 1px dashed #d7deea; border-radius: 9px; padding: 18px; text-align: center; overflow: hidden; }
.lf-ad > span { position: absolute; left: 8px; top: 4px; color: var(--soft-muted); font-size: 13px; letter-spacing: 1px; }
.lf-ad img { max-width: 100%; margin: auto; }
.lf-breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; color: var(--soft-muted); font-size: 13px; }
.lf-breadcrumb a:hover { color: var(--brand); }
.lf-board-hero { display: flex; align-items: center; gap: 17px; min-height: 142px; background: linear-gradient(120deg, #fff, #f5f7ff); border: 1px solid #e1e6f5; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.lf-board-hero > div { min-width: 0; flex: 1; }
.lf-board-hero h1 { font-size: 23px; }
.lf-board-hero p { color: var(--muted); font-size: 15px; margin-top: 5px; }
.lf-board-hero .lf-button { flex: 0 0 auto; }
.lf-board-meta { display: flex; align-items: center; gap: 17px; flex-wrap: wrap; margin-top: 13px; color: var(--soft-muted); font-size: 13px; }
.lf-board-meta b { color: #475569; font-size: 14px; margin-right: 3px; }
.lf-board-counts { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.lf-board-counts b { color: var(--brand); }
.lf-board-links { display: flex; gap: 5px; flex-wrap: wrap; }
.lf-topic-layout { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 22px; align-items: start; margin-bottom: 22px; }
.lf-topic-detail { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.lf-topic-header { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.lf-topic-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.lf-topic-badges:empty { display: none; }
.lf-topic-header h1 { font-size: 25px; line-height: 1.5; letter-spacing: .2px; overflow-wrap: anywhere; }
.lf-topic-info { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; margin-top: 15px; color: var(--soft-muted); font-size: 13px; }
.lf-topic-info a { display: flex; align-items: center; gap: 6px; color: #475569; }
.lf-topic-info img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.lf-topic-info b { color: #475569; font-weight: 600; }
.lf-role { color: var(--soft-muted); }
.lf-topic-content { padding: 25px 0; font-size: 16px; line-height: 2; word-break: break-word; overflow-wrap: anywhere; }
.lf-topic-content br { line-height: 1.2; }
.lf-topic-content img { max-width: 100%; height: auto; }
.lf-topic-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; }
.lf-topic-actions button, .lf-topic-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--muted); font-size: 13px; }
.lf-topic-actions button:hover, .lf-topic-actions a:hover { color: var(--brand); border-color: #c7d2fe; }
.lf-topic-actions button.is-on { color: var(--brand); border-color: #c7d2fe; background: var(--brand-soft); }
.lf-topic-actions .lf-delete-topic { color: #dc2626; }
.lf-article-hero { position: relative; overflow: hidden; background: linear-gradient(120deg, #fff 0%, #f8fafc 58%, #eef6f3 100%); border: 1px solid #dce7e2; border-left: 4px solid #2f7d68; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.lf-article-hero .lf-hero-symbol { color: #2f7d68; background: #e7f3ee; }
.lf-article-hero .lf-eyebrow { color: #2f7d68; }
.lf-article-hero h1 { font-size: 24px; letter-spacing: .2px; }
.lf-article-hero p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.lf-article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lf-article-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.lf-article-card:hover { border-color: #b9d8cc; box-shadow: 0 8px 24px rgba(30, 41, 59, .08); transform: translateY(-2px); }
.lf-article-card-cover { display: block; aspect-ratio: 16 / 8.5; overflow: hidden; background: linear-gradient(135deg, #e8f1ed, #f5f8f7); }
.lf-article-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.lf-article-card:hover .lf-article-card-cover img { transform: scale(1.025); }
.lf-article-cover-fallback { display: grid; place-items: center; width: 100%; height: 100%; color: #80a99b; }
.lf-article-cover-fallback .lf-icon { width: 42px; height: 42px; stroke-width: 1.2; }
.lf-article-card-body { padding: 17px 18px 16px; }
.lf-article-card-kicker { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--soft-muted); font-size: 13px; }
.lf-article-card-kicker a { color: #2f7d68; font-weight: 600; }
.lf-article-card h2 { margin-top: 8px; font-size: 18px; line-height: 1.55; overflow-wrap: anywhere; }
.lf-article-card h2 a:hover { color: #2f7d68; }
.lf-article-card-body > p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.lf-article-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--soft-muted); font-size: 13px; }
.lf-article-card footer a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.lf-article-card footer img { width: 21px; height: 21px; border-radius: 50%; object-fit: cover; }
.lf-article-detail { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.lf-article-header { padding: 30px 32px 23px; border-bottom: 1px solid var(--line); }
.lf-article-kicker { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 11px; }
.lf-article-kicker > a { color: #2f7d68; font-size: 14px; font-weight: 650; }
.lf-article-header h1 { font-size: 28px; line-height: 1.45; letter-spacing: .2px; overflow-wrap: anywhere; }
.lf-article-meta { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; margin-top: 17px; color: var(--soft-muted); font-size: 13px; }
.lf-article-meta a { display: inline-flex; align-items: center; gap: 6px; color: #475569; }
.lf-article-meta img { width: 25px; height: 25px; border-radius: 50%; object-fit: cover; }
.lf-article-meta b { color: #475569; font-weight: 600; }
.lf-article-cover { margin: 0; padding: 24px 32px 0; }
.lf-article-cover img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 10px; }
.lf-article-body { padding: 27px 32px 30px; color: #263449; font-size: 17px; line-height: 2; word-break: break-word; overflow-wrap: anywhere; }
.lf-article-body > :first-child { margin-top: 0; }
.lf-article-body > :last-child { margin-bottom: 0; }
.lf-article-body p { margin: 0 0 1.15em; }
.lf-article-body h2, .lf-article-body h3, .lf-article-body h4 { margin: 1.7em 0 .7em; color: var(--ink); line-height: 1.5; }
.lf-article-body h2 { font-size: 23px; }
.lf-article-body h3 { font-size: 20px; }
.lf-article-body img { max-width: 100%; height: auto; border-radius: 8px; }
.lf-article-body pre { overflow: auto; padding: 16px; border-radius: 8px; background: #f5f7fa; font-size: 15px; line-height: 1.7; }
.lf-article-body blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 3px solid #76a895; background: #f3f8f6; color: #52645f; }
.lf-article-body table { display: block; max-width: 100%; overflow: auto; border-collapse: collapse; }
.lf-article-body th, .lf-article-body td { padding: 8px 12px; border: 1px solid var(--line); }
.lf-article-tags { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 0 32px 25px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--soft-muted); font-size: 13px; }
.lf-article-tags a { padding: 3px 9px; border-radius: 5px; background: #edf5f1; color: #2f7d68; }
.lf-article-neighbors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 32px 28px; }
.lf-article-neighbors a { min-width: 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; background: #fafcfb; }
.lf-article-neighbors a:hover { border-color: #b9d8cc; color: inherit; }
.lf-article-neighbors small { display: block; margin-bottom: 4px; color: var(--soft-muted); font-size: 13px; }
.lf-article-neighbors strong { display: block; overflow: hidden; color: #334155; font-size: 14px; font-weight: 600; line-height: 1.6; text-overflow: ellipsis; white-space: nowrap; }
.lf-article-neighbors .is-next { text-align: right; }
.lf-article-comments { border-top-color: #dce7e2; }
.lf-side-empty { padding: 14px 2px; color: var(--soft-muted); font-size: 13px; }
.lf-author-card { text-align: center; }
.lf-author-card > img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; }
.lf-author-card h2 { font-size: 17px; }
.lf-author-card > p { font-size: 13px; color: var(--muted); }
.lf-author-card > div { display: flex; justify-content: center; gap: 28px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.lf-author-card b { display: block; color: var(--ink); font-size: 17px; }
.lf-author-card .lf-author-medals { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.lf-author-card .lf-author-medals img { width: 22px; height: 32px; object-fit: contain; margin: 0; border-radius: 0; }
.lf-author-card .lf-author-link { display: inline-flex; margin-top: 12px; }
.lf-side-board { display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 8px; background: #f8faff; }
.lf-side-board > span:last-child { min-width: 0; }
.lf-side-board strong, .lf-side-board small { display: block; }
.lf-side-board strong { font-size: 15px; }
.lf-side-board small { margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.lf-board-card-actions { display: flex; gap: 8px; margin-top: 13px; }
.lf-board-card-actions .lf-button { flex: 1; padding-inline: 8px; }
.lf-native-comment-form { display: grid; gap: 12px; padding: 18px; margin-bottom: 25px; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; scroll-margin-top: 20px; }
.lf-native-comment-form label:not(.lf-sr-only) { display: grid; gap: 5px; color: var(--muted); font-size: 13px; }
.lf-native-comment-form > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lf-native-comment-form .captcha_input { width: 120px; height: 39px; margin-left: 8px; }
.lf-native-comment-form .captcha { display: inline-block; width: 110px; height: 39px; border: 1px solid var(--line); border-radius: 6px; vertical-align: middle; }
.lf-native-comments > h2 { font-size: 19px; margin-bottom: 15px; }
.lf-native-comments > h2 small { color: var(--muted); font-size: 13px; font-weight: 400; }
.lf-native-comments > p { color: var(--muted); font-size: 14px; padding: 20px 0; }
.lf-native-comment { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.lf-native-comment:target { background: #fafaff; box-shadow: 0 0 0 12px #fafaff; }
.lf-native-comment > img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.lf-native-comment-main { min-width: 0; }
.lf-native-comment-main > header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.lf-native-comment-main > header strong, .lf-native-comment-main > header a { font-weight: 600; }
.lf-native-comment-main > header time { color: var(--soft-muted); font-size: 13px; }
.lf-native-comment-main > p { margin-top: 7px; color: #334155; font-size: 15px; line-height: 1.9; word-break: break-word; overflow-wrap: anywhere; }
.lf-native-reply { margin-top: 8px; padding: 0; border: 0; background: transparent; color: var(--brand); font-size: 13px; }
.lf-native-comment .lf-native-comment { margin-top: 15px; padding: 15px 0 0; border-top: 1px dashed var(--line); border-bottom: 0; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
.lf-native-comment .lf-native-comment > img { width: 32px; height: 32px; }
.lf-replies-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.lf-replies-section .lf-section-head { margin-bottom: 17px; }
.lf-replies-section .lf-section-head h2 small { color: var(--muted); font-size: 13px; font-weight: 400; }
.lf-replies-section .lf-section-head > a { flex: 0 0 auto; color: var(--brand); font-size: 13px; }
.lf-replies { border-top: 1px solid var(--line); }
.lf-reply { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 22px; padding: 23px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.lf-reply:target { background: #fafaff; box-shadow: 0 0 0 12px #fafaff; }
.lf-reply-author { min-width: 0; text-align: center; }
.lf-reply-author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; margin: 0 auto 7px; }
.lf-reply-author strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.lf-reply-author span, .lf-reply-author em { display: block; color: var(--soft-muted); font-size: 13px; font-style: normal; }
.lf-reply-author em { color: var(--brand); }
.lf-reply-body { min-width: 0; }
.lf-reply-body > header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--soft-muted); font-size: 13px; margin-bottom: 9px; }
.lf-floor { color: var(--muted); font-weight: 600; }
.lf-reply-content { font-size: 15px; line-height: 1.9; word-break: break-word; overflow-wrap: anywhere; }
.lf-reply-body > footer { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 13px; }
.lf-reply-body > footer button { border: 0; background: transparent; padding: 2px; color: var(--muted); font-size: 13px; }
.lf-reply-body > footer button:hover, .lf-reply-body > footer .lf-like.is-on { color: var(--brand); }
.lf-article-meta .lf-like, .lf-topic-info .lf-like { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; background: #fff; color: var(--muted); font-size: 12px; line-height: 1.7; cursor: pointer; }
.lf-article-meta .lf-like:hover, .lf-topic-info .lf-like:hover, .lf-article-meta .lf-like.is-on, .lf-topic-info .lf-like.is-on { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.lf-inline-edit { margin-top: 12px; display: grid; gap: 8px; }
.lf-inline-edit[hidden] { display: none; }
.lf-inline-edit textarea { font-size: 14px; }
.lf-inline-edit button { justify-self: start; }
.lf-inline-edit .lf-button-plain { margin-left: -6px; }
.lf-inline-edit .lf-form-message { font-size: 13px; }
.lf-reply-form { margin-top: 26px; padding: 20px; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; scroll-margin-top: 20px; }
.lf-reply-form h2 { font-size: 17px; margin-bottom: 12px; }
.lf-reply-form-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.lf-captcha { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lf-captcha input { width: 96px; height: 39px; }
.lf-captcha-img { width: 110px; height: 39px; border: 1px solid var(--line); border-radius: 6px; }
.lf-captcha-text { color: var(--brand); font-size: 13px; }
.lf-form-message { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.lf-form-message.is-error { color: #b91c1c; }
.lf-form-message.is-ok { color: #15803d; }
.lf-topic-pager { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 13px; }
.lf-topic-pager a { min-width: 0; color: var(--brand); overflow-wrap: anywhere; }
.lf-moderation { background: #f8faff; border: 1px solid #e0e7ff; border-radius: 9px; padding: 17px; margin-top: 20px; }
.lf-moderation h2 { font-size: 16px; margin-bottom: 12px; }
.lf-moderation form { display: flex; align-items: flex-end; gap: 11px; flex-wrap: wrap; }
.lf-moderation label { font-size: 13px; color: var(--muted); }
.lf-moderation select { width: auto; padding: 7px; }
.lf-check { display: flex !important; align-items: center; gap: 7px !important; min-height: 38px; font-size: 13px !important; color: var(--muted) !important; }
.lf-check input { width: 16px; height: 16px; flex: 0 0 auto; padding: 0; box-shadow: none; }
.lf-login-gate, .lf-empty-page { background: #fff; border: 1px solid var(--line); border-radius: 14px; text-align: center; padding: 54px 24px; max-width: 700px; margin: 36px auto; box-shadow: var(--shadow); }
.lf-login-gate > span, .lf-empty-page > span { display: block; color: #c7d2fe; font: 700 44px/1 Georgia, serif; margin-bottom: 14px; }
.lf-login-gate h1, .lf-login-gate h2, .lf-empty-page h1 { font-size: 22px; }
.lf-login-gate p, .lf-empty-page p { color: var(--muted); margin: 10px 0 20px; }
.lf-login-gate > div { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.lf-login-gate.is-locked { max-width: none; margin: 26px 0 0; padding: 34px 20px; }
.lf-inline-empty { text-align: center; padding: 38px 18px; color: var(--muted); }
.lf-inline-empty > span { color: #c7d2fe; font-size: 30px; }
.lf-inline-empty p { margin: 8px 0 14px; font-size: 16px; }
.lf-user-hero, .lf-public-profile { display: flex; align-items: center; gap: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 25px; margin-bottom: 21px; box-shadow: var(--shadow); }
.lf-user-identity { display: flex; align-items: center; gap: 19px; min-width: 0; }
.lf-user-avatar { flex: 0 0 auto; position: relative; text-align: center; }
.lf-user-avatar img, .lf-public-profile > img { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; }
.lf-user-avatar span { display: block; margin-top: 4px; color: var(--soft-muted); font-size: 13px; }
.lf-user-identity h1, .lf-public-profile h1 { font-size: 23px; }
.lf-user-identity p, .lf-public-profile p { color: var(--muted); font-size: 16px; margin-top: 5px; }
.lf-user-hero > .lf-button { margin-left: auto; flex: 0 0 auto; }
.lf-user-hero-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lf-user-layout { display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: 21px; align-items: start; }
.lf-user-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 19px; box-shadow: var(--shadow); }
.lf-user-nav h2 { font-size: 20px; margin-bottom: 15px; }
.lf-user-nav nav { display: grid; gap: 5px; }
.lf-user-nav nav a { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 8px; color: var(--muted); font-size: 16px; }
.lf-user-nav nav a.is-on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.lf-admin-shortcut { display: block; margin: 16px 0; padding: 10px 12px; background: #eef2ff; color: var(--brand); border-radius: 8px; font-size: 15px; }
.lf-user-quick { border-top: 1px solid var(--line); padding-top: 13px; margin-top: 15px; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
.lf-user-quick a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcff; color: #475569; transition: border-color .2s, color .2s, background .2s; }
.lf-user-quick a:hover { border-color: #c7d2fe; background: #f5f7ff; color: var(--brand); }
.lf-user-quick a:last-child { color: #b42318; }
.lf-user-quick a:last-child:hover { border-color: #fecaca; background: #fff5f5; color: #b42318; }
.lf-user-content { min-width: 0; }
.lf-user-content > .lf-user-panel { margin-bottom: 18px; }
.lf-user-panel .lf-topic-table { margin-inline: -22px; width: calc(100% + 44px); }
.lf-user-panel .lf-topic-row td:first-child { padding-left: 22px; }
.lf-user-panel .lf-topic-row td:last-child { padding-right: 22px; }
.lf-user-panel .lf-topic-row:last-child td { border-radius: 0 0 12px 12px; }
.lf-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.lf-stat-grid > div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 19px; box-shadow: var(--shadow); }
.lf-stat-grid span { color: var(--muted); font-size: 15px; }
.lf-stat-grid b { display: block; margin: 5px 0; color: var(--brand); font-size: 30px; line-height: 1.3; }
.lf-stat-grid a { color: var(--brand); font-size: 14px; }
.lf-user-articles { display: grid; gap: 0; }
.lf-user-articles a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); color: #334155; font-size: 16px; }
.lf-user-articles a:last-child { border-bottom: 0; }
.lf-user-articles a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lf-user-articles a time { flex: 0 0 auto; color: var(--muted); font-size: 15px; }
.lf-user-articles a:hover { color: var(--brand); }
.lf-user-note { margin-top: 8px; color: var(--muted); font-size: 15px; }
.lf-user-replies { display: grid; }
.lf-user-replies article { padding: 14px 0; border-bottom: 1px solid var(--line); }
.lf-user-replies article:last-child { border-bottom: 0; }
.lf-user-replies header { display: flex; justify-content: space-between; gap: 12px; }
.lf-user-replies header a { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.lf-user-replies time { flex: 0 0 auto; color: var(--soft-muted); font-size: 13px; white-space: nowrap; }
.lf-user-replies p { color: var(--muted); font-size: 14px; margin: 7px 0; }
.lf-user-replies footer { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 13px; }
.lf-profile-form, .lf-avatar-form { display: grid; gap: 13px; max-width: 600px; }
.lf-profile-form label, .lf-compose label, .lf-board-admin label, .lf-moderation label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.lf-profile-form input:disabled { background: #f8fafc; color: var(--muted); }
.lf-profile-form .lf-button { justify-self: start; }
.lf-avatar-form { grid-template-columns: 88px minmax(0, 1fr); align-items: start; }
.lf-avatar-form > img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.lf-avatar-form > div { display: grid; gap: 10px; min-width: 0; }
.lf-avatar-form .lf-button { justify-self: start; }
.lf-public-profile > div:nth-child(2) { flex: 1; min-width: 0; }
.lf-public-profile > div:nth-child(2) > span { color: var(--soft-muted); font-size: 13px; }
.lf-profile-stats { display: flex; gap: 27px; text-align: center; color: var(--muted); font-size: 13px; }
.lf-profile-stats b { display: block; color: var(--brand); font-size: 22px; }
.lf-profile-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.lf-profile-tabs a { padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 14px; }
.lf-profile-tabs a.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.lf-compose { max-width: none; margin: 0; padding: 29px; }
.lf-compose > header { margin-bottom: 21px; }
.lf-compose h1 { font-size: 24px; }
.lf-compose header p { color: var(--muted); font-size: 14px; margin-top: 7px; }
.lf-compose form { display: grid; gap: 16px; }
.lf-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.lf-compose label small { color: var(--soft-muted); font-size: 13px; }
.lf-compose-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lf-form-help { color: var(--muted); font-size: 13px; }
.lf-search-head { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 25px; margin-bottom: 20px; box-shadow: var(--shadow); }
.lf-search-head h1 { font-size: 22px; }
.lf-search-head form { display: flex; gap: 10px; max-width: 600px; margin-top: 15px; }
.lf-admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 23px; margin-bottom: 18px; box-shadow: var(--shadow); }
.lf-admin-head h1 { font-size: 23px; }
.lf-admin-head p { color: var(--muted); font-size: 14px; margin-top: 5px; }
.lf-pending-count { flex: 0 0 auto; background: #eef2ff; color: var(--brand); padding: 7px 12px; border-radius: 7px; font-size: 13px; }
.lf-admin-tabs { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 7px; margin-bottom: 13px; }
.lf-admin-filter { margin-bottom: 13px; }
.lf-admin-list { display: grid; gap: 12px; }
.lf-admin-post { display: flex; justify-content: space-between; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; box-shadow: var(--shadow); }
.lf-admin-post > div:first-child { min-width: 0; flex: 1; }
.lf-admin-post h2 { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 16px; }
.lf-admin-post p { color: var(--muted); font-size: 13px; margin: 7px 0; }
.lf-admin-post > div:first-child > span { color: var(--soft-muted); font-size: 13px; }
.lf-admin-post form { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; max-width: 390px; }
.lf-admin-post select { width: auto; padding: 6px; font-size: 13px; }
.lf-admin-post .lf-form-message { flex-basis: 100%; }
.lf-admin-reply-actions { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.lf-board-admin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lf-board-create, .lf-board-edit { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 19px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.lf-board-admin { display: block; }
.lf-board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.lf-board-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.lf-board-card-head { display: flex; align-items: center; gap: 12px; }
.lf-board-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; }
.lf-board-card h3 { margin: 0; font-size: 16px; }
.lf-board-card p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.lf-board-mods { margin-top: 12px !important; }
.lf-board-actions { display: flex; gap: 14px; margin-top: 12px; }
.lf-board-actions a { color: var(--brand); font-size: 13px; }
.lf-board-mod-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.lf-board-mod-form select { flex: 1 1 180px; min-width: 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: inherit; font-size: 13px; }
.lf-board-mod-form .lf-button { padding: 7px 14px; }
.lf-board-create h2, .lf-board-edit h2 { font-size: 17px; }
.lf-board-create .lf-button, .lf-board-edit .lf-button { justify-self: start; }
.lf-page { padding: 30px; margin-bottom: 23px; }
.lf-page h1 { font-size: 26px; margin-bottom: 19px; }
.lf-rich-content { line-height: 2; word-break: break-word; }
.lf-rich-content img { height: auto; border-radius: 7px; }
.lf-empty { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 29px; text-align: center; color: var(--muted); margin-bottom: 20px; }
.lf-muted { color: var(--muted); }
.lf-footer { background: #fff; border-top: 1px solid var(--line); color: var(--muted); padding: 34px 0 18px; }
.lf-footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, .7fr)); gap: 32px; }
.lf-footer h2, .lf-footer h3 { color: var(--ink); }
.lf-footer h3 { font-size: 14px; margin-bottom: 11px; }
.lf-footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.lf-footer-brand .lf-brand-mark { margin-bottom: 11px; }
.lf-footer-logo { width: auto; max-width: 165px; height: 40px; object-fit: contain; margin-bottom: 11px; }
.lf-footer-brand p { margin-top: 8px; font-size: 13px; }
.lf-footer-bottom { border-top: 1px solid var(--line); margin-top: 27px; padding-top: 16px; display: flex; gap: 17px; flex-wrap: wrap; font-size: 13px; }
.lf-back-top { position: fixed; right: 22px; bottom: 22px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--brand); box-shadow: 0 6px 22px rgba(30, 41, 59, .12); z-index: 20; }
@media (max-width: 1000px) {
    .lf-content-grid, .lf-topic-layout { grid-template-columns: minmax(0, 1fr) 265px; gap: 18px; }
    .lf-board-section, .lf-feed, .lf-user-panel { padding: 18px; }
    .lf-user-panel .lf-topic-table { margin-inline: -18px; width: calc(100% + 36px); }
    .lf-user-panel .lf-topic-row td:first-child { padding-left: 18px; }
    .lf-user-panel .lf-topic-row td:last-child { padding-right: 18px; }
    .lf-topic-table th:last-child, .lf-topic-last { width: 118px; }
    .lf-board-card { padding: 16px 13px; }
    .lf-forum-hero { padding: 21px; }
    .lf-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lf-footer-brand { grid-column: 1 / -1; }
    .lf-admin-post { flex-direction: column; }
    .lf-admin-post form { max-width: none; }
    .lf-board-admin { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
    .lf-shell { width: calc(100% - 30px); }
    .lf-masthead { min-height: 73px; }
    .lf-head-ad { display: none; }
    .lf-brand { min-width: 0; }
    .lf-menu-toggle { display: block; }
    .lf-nav-wrap { display: none; }
    .lf-nav-wrap.is-open { display: block; }
    .lf-nav-row { display: block; padding: 9px 0; }
    .lf-nav { gap: 22px; }
    .lf-nav a { height: 37px; }
    .lf-search { margin: 11px 0 0; width: 100%; }
    .lf-content-grid, .lf-topic-layout { grid-template-columns: minmax(0, 1fr); }
    .lf-main-column { gap: 17px; }
    .lf-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .lf-sidebar .lf-author-card { grid-column: 1 / -1; }
    .lf-board-grid { grid-template-columns: 1fr; }
    .lf-article-grid { grid-template-columns: 1fr; }
    .lf-user-layout { grid-template-columns: minmax(0, 1fr); }
    .lf-user-nav nav { display: flex; overflow: auto; padding-bottom: 3px; scrollbar-width: thin; }
    .lf-user-nav nav a { flex: 0 0 auto; white-space: nowrap; }
    .lf-user-quick { display: flex; flex-wrap: wrap; gap: 15px; }
    .lf-topic-detail { padding: 22px; }
    .lf-reply { grid-template-columns: 92px minmax(0, 1fr); gap: 15px; }
    .lf-user-hero { align-items: flex-start; }
    .lf-user-hero > .lf-button { margin-left: 0; }
}
@media (max-width: 620px) {
    .lf-shell { width: calc(100% - 24px); }
    .lf-topbar-inner { gap: 9px; }
    .lf-notice { display: none; }
    .lf-topbar-inner > div { margin-left: auto; gap: 13px; }
    .lf-brand { gap: 9px; }
    .lf-brand strong { font-size: 20px; }
    .lf-brand small { font-size: 12px; letter-spacing: 1px; }
    .lf-brand-mark { width: 37px; height: 37px; }
    .lf-brand-logo { max-width: 125px; height: 38px; }
    .lf-account { gap: 9px; }
    .lf-account > .lf-button { min-height: 32px; padding: 5px 10px; font-size: 13px; }
    .lf-brand strong { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .lf-member-link { max-width: 105px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .lf-member-link img { width: 26px; height: 26px; }
    .lf-main { padding: 17px 0 40px; }
    .lf-forum-hero { align-items: flex-start; flex-wrap: wrap; gap: 16px; padding: 19px; }
    .lf-hero-copy { align-items: flex-start; gap: 12px; }
    .lf-hero-symbol { flex-basis: 43px; width: 43px; height: 43px; border-radius: 10px; }
    .lf-hero-symbol .lf-icon { width: 24px; height: 24px; }
    .lf-forum-hero h1 { font-size: 20px; }
    .lf-forum-hero p { font-size: 13px; margin-top: 6px; }
    .lf-forum-hero .lf-button { margin-left: 55px; }
    .lf-board-section, .lf-feed, .lf-user-panel { padding: 16px; }
    .lf-panel-head, .lf-feed-head { align-items: flex-start; gap: 10px; }
    .lf-panel-head > span { display: none; }
    .lf-panel-head h2, .lf-side-title h2, .lf-section-head h2, .lf-feed-head h2 { font-size: 19px; }
    .lf-board-card { min-height: 96px; padding: 15px 13px; }
    .lf-board-info strong { font-size: 15px; }
    .lf-board-desc { font-size: 13px; }
    .lf-feed-head { flex-direction: column; }
    .lf-filter-tabs { width: 100%; }
    .lf-filter-tabs a { flex: 1; justify-content: center; }
    .lf-topic-table, .lf-topic-table tbody { display: block; width: 100%; }
    .lf-topic-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .lf-topic-row { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); }
    .lf-topic-row:last-child { border-bottom: 0; }
    .lf-topic-row td { display: block; width: auto !important; padding: 0 !important; border: 0; text-align: left; }
    .lf-topic-title > a { font-size: 16px; }
    .lf-topic-main > p { -webkit-line-clamp: 2; }
    .lf-topic-meta { gap: 8px; }
    .lf-topic-stats { display: flex; align-items: center; gap: 13px; margin-top: 10px; }
    .lf-topic-stats::before { content: "数据"; color: var(--soft-muted); font-size: 13px; }
    .lf-topic-stats span { margin: 0; }
    .lf-topic-last { display: flex !important; align-items: center; gap: 6px; margin-top: 7px; }
    .lf-topic-last::before { content: "最后回复"; color: var(--soft-muted); font-size: 13px; }
    .lf-topic-last a { font-size: 13px; }
    .lf-topic-last time { margin: 0; font-size: 13px; }
    .lf-topic-last a, .lf-topic-last time { max-width: 42%; }
    .lf-sidebar { grid-template-columns: 1fr; gap: 14px; }
    .lf-sidebar .lf-author-card { grid-column: auto; }
    .lf-side-card, .lf-author-card { padding: 17px; }
    .lf-board-hero { align-items: flex-start; flex-wrap: wrap; gap: 13px; padding: 18px; }
    .lf-board-icon.is-large { flex-basis: 49px; width: 49px; height: 49px; }
    .lf-board-hero h1 { font-size: 20px; }
    .lf-board-hero > div { flex-basis: calc(100% - 63px); }
    .lf-board-hero .lf-button { margin-left: 62px; }
    .lf-topic-detail { padding: 18px; }
    .lf-article-hero { padding: 19px; }
    .lf-article-header { padding: 21px 18px 18px; }
    .lf-article-header h1 { font-size: 22px; }
    .lf-article-cover { padding: 18px 18px 0; }
    .lf-article-body { padding: 21px 18px 23px; font-size: 16px; }
    .lf-article-tags { margin-inline: 18px; }
    .lf-article-neighbors { grid-template-columns: 1fr; padding: 0 18px 21px; }
    .lf-article-neighbors .is-next { text-align: left; }
    .lf-topic-header h1 { font-size: 21px; }
    .lf-topic-info { gap: 9px 12px; }
    .lf-topic-content { padding: 20px 0; font-size: 16px; }
    .lf-topic-actions { gap: 7px; }
    .lf-topic-actions button, .lf-topic-actions a { max-width: 100%; white-space: normal; }
    .lf-replies-section { padding: 16px; }
    .lf-native-comment-form { padding: 14px; }
    .lf-native-comment { grid-template-columns: 34px minmax(0, 1fr); gap: 9px; }
    .lf-native-comment > img { width: 34px; height: 34px; }
    .lf-native-comment .lf-native-comment { grid-template-columns: 28px minmax(0, 1fr); }
    .lf-native-comment .lf-native-comment > img { width: 28px; height: 28px; }
    .lf-replies-section .lf-section-head > a { font-size: 13px; }
    .lf-reply { grid-template-columns: 1fr; gap: 10px; padding: 18px 0; }
    .lf-reply-author { display: flex; align-items: center; gap: 7px; text-align: left; flex-wrap: wrap; }
    .lf-reply-author img { width: 33px; height: 33px; margin: 0; }
    .lf-reply-author strong { font-size: 13px; }
    .lf-reply-author em { margin-left: auto; }
    .lf-reply-form { padding: 14px; }
    .lf-reply-form-foot { align-items: flex-start; gap: 10px; }
    .lf-captcha { flex: 1 1 100%; }
    .lf-captcha input { flex: 1; min-width: 65px; }
    .lf-topic-pager { flex-direction: column; gap: 9px; }
    .lf-user-hero, .lf-public-profile { flex-wrap: wrap; gap: 15px; padding: 19px; }
    .lf-user-identity { gap: 13px; }
    .lf-user-avatar img, .lf-public-profile > img { width: 65px; height: 65px; }
    .lf-user-identity h1, .lf-public-profile h1 { font-size: 20px; }
    .lf-user-hero > .lf-button { width: 100%; }
    .lf-stat-grid { gap: 8px; }
    .lf-stat-grid > div { padding: 12px 10px; }
    .lf-stat-grid b { font-size: 26px; }
    .lf-stat-grid a { font-size: 13px; }
    .lf-user-panel .lf-topic-table { margin-inline: -16px; width: calc(100% + 32px); }
    .lf-user-panel .lf-topic-row td { padding-block: 15px; }
    .lf-user-panel .lf-topic-row td:first-child { padding-left: 16px; padding-right: 16px; }
    .lf-avatar-form { grid-template-columns: 1fr; }
    .lf-profile-stats { width: 100%; justify-content: flex-start; }
    .lf-form-grid { grid-template-columns: 1fr; }
    .lf-compose { padding: 19px; }
    .lf-search-head { padding: 19px; }
    .lf-search-head form { flex-direction: column; }
    .lf-admin-head { align-items: flex-start; flex-direction: column; padding: 18px; }
    .lf-admin-tabs a { flex: 1; justify-content: center; padding-inline: 7px; }
    .lf-admin-post { padding: 15px; }
    .lf-admin-post form { gap: 7px; }
    .lf-admin-post .lf-check { min-height: 30px; }
    .lf-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px; }
    .lf-footer-brand { grid-column: 1 / -1; }
    .lf-footer-bottom { flex-direction: column; gap: 7px; }
    .lf-back-top { right: 13px; bottom: 13px; width: 35px; height: 35px; }
    .lf-page { padding: 19px; }
    .lf-login-gate, .lf-empty-page { padding: 38px 17px; }
    .lf-login-gate h1, .lf-empty-page h1 { font-size: 20px; }
    .lf-captcha-img { width: 100px; }
}
@media (max-width: 380px) {
    .lf-brand small { display: none; }
    .lf-brand strong { font-size: 18px; }
    .lf-manage { display: none; }
    .lf-board-count { padding-inline: 6px; }
    .lf-stat-grid { grid-template-columns: 1fr; }
}
@media print {
    .lf-header, .lf-footer, .lf-sidebar, .lf-topic-actions, .lf-replies-section, .lf-back-top, .lf-ad { display: none !important; }
    .lf-shell { width: 100%; }
    .lf-topic-layout { display: block; }
    .lf-topic-detail { border: 0; padding: 0; box-shadow: none; }
    .lf-article-detail { border: 0; box-shadow: none; }
    .lf-article-cover, .lf-article-tags, .lf-article-neighbors { display: none; }
    .lf-article-header { padding: 0 0 20px; }
    .lf-article-body { padding: 20px 0; }
    .lf-main { padding: 0; }
    .lf-topic-content { font-size: 12pt; }
    body { background: #fff; }
}

.lf-medals { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; vertical-align: middle; }
.lf-medals img { width: 18px; height: 28px; object-fit: contain; }
.lf-badge-hero { display: flex; align-items: center; justify-content: space-between; gap: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 25px; margin-bottom: 18px; box-shadow: var(--shadow); }
.lf-badge-hero h1 { font-size: 26px; }
.lf-badge-hero p { color: var(--muted); margin-top: 6px; }
.lf-badge-summary { display: flex; gap: 28px; text-align: center; color: var(--muted); font-size: 13px; }
.lf-badge-summary b { display: block; color: var(--brand); font-size: 28px; }
.lf-badge-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.lf-badge-tabs a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 14px; }
.lf-badge-tabs a.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.lf-badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 20px; }
.lf-badge-card { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: var(--shadow); }
.lf-badge-card.is-owned { border-color: #b9e6cd; background: #f7fffb; }
.lf-badge-card > img { width: 34px; height: 52px; object-fit: contain; flex: none; }
.lf-badge-card > div { min-width: 0; flex: 1; }
.lf-badge-card h2 { font-size: 15px; }
.lf-badge-card p { color: var(--muted); font-size: 12px; margin: 3px 0; line-height: 1.5; }
.lf-badge-card div > span { color: var(--soft-muted); font-size: 11px; }
.lf-badge-card em { margin-left: auto; flex: none; font-style: normal; font-size: 11px; color: var(--muted); border: 1px solid var(--line); padding: 2px 7px; border-radius: 999px; }
.lf-badge-card em.is-owned { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.lf-badge-apply { margin-left: auto; flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; background: #fff; color: var(--brand); font-size: 12px; line-height: 1.7; text-decoration: none; cursor: pointer; }
.lf-badge-apply:hover { background: var(--brand-soft); }
.lf-badge-progress { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; }
.lf-badge-progress.is-ok { color: #15803d; }
.lf-badge-card em.is-locked { color: #9ca3af; }
.lf-medal-applies { margin-top: 30px; }
.lf-badge-record { display: inline-flex; align-items: center; gap: 7px; }
.lf-badge-record img { width: 16px; height: 24px; object-fit: contain; }
.lf-badge-records .lf-topic-table { margin-inline: 0; width: 100%; }
.lf-badge-records .lf-topic-table td { padding: 13px 10px; border-bottom: 1px solid var(--line); }
.lf-badge-records .lf-topic-table td:first-child, .lf-badge-records .lf-topic-table th:first-child { padding-left: 14px; }
.lf-badge-records .lf-topic-table td:last-child, .lf-badge-records .lf-topic-table th:last-child { padding-right: 14px; }
.lf-badge-records .lf-topic-table tbody tr:last-child td { border-bottom: 0; }
.lf-medal-admin-head { margin-bottom: 16px; }
.lf-medal-admin-head h2 { font-size: 20px; }
.lf-medal-admin-head p { color: var(--muted); margin-top: 5px; }
.lf-medal-form { margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.lf-medal-form h2 { font-size: 18px; margin-bottom: 14px; }
.lf-medal-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-bottom: 14px; }
.lf-medal-choice { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.lf-medal-choice img { width: 20px; height: 30px; object-fit: contain; }
.lf-medal-choice b { display: block; font-size: 14px; }
.lf-medal-choice small { display: block; color: var(--muted); font-size: 12px; }
.lf-auth { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 24px; align-items: start; }
.lf-auth-aside { background: linear-gradient(145deg, #1f4d3f, #2f6f58); color: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.lf-auth-aside h1 { font-size: 30px; margin: 8px 0 12px; }
.lf-auth-aside p { color: rgba(255, 255, 255, .82); line-height: 1.8; }
.lf-auth-aside ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.lf-auth-aside li { padding-left: 20px; position: relative; color: rgba(255, 255, 255, .9); }
.lf-auth-aside li::before { content: '✓'; position: absolute; left: 0; color: #bff3d8; }
.lf-auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.lf-auth-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.lf-auth-tabs a { flex: 1; text-align: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 15px; }
.lf-auth-tabs a.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.lf-auth-form { display: grid; gap: 14px; }
.lf-auth-form label { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.lf-auth-form input:not([type="checkbox"]):not([type="file"]) { width: 100%; height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-size: 16px; }
.lf-auth-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.lf-auth-form .lf-button { width: 100%; justify-content: center; }
.lf-auth-switch { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.lf-auth-switch a { color: var(--brand); margin-left: 4px; }
@media (max-width: 900px) {
    .lf-auth { grid-template-columns: 1fr; }
    .lf-auth-aside { display: none; }
}

/* 系统小工具侧栏 */
.lf-sidebar-system .widget { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 18px; }
.lf-sidebar-system .widget-title { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.lf-sidebar-system .widget-title h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.lf-sidebar-system .widget ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.lf-sidebar-system .widget li a { color: var(--muted); font-size: 14px; }
.lf-sidebar-system .widget li a:hover { color: var(--brand); }
.lf-sidebar-system .widget img { max-width: 100%; height: auto; }

@media(max-width:760px) { .lf-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
