/* PC 论坛大厅 · 封面卡片。左侧栏（搜索、分区导航、总数）吸顶，右侧三列卡片；
   封面是论坛背景图，按原比例 3:1 显示，头像压在封面下沿，关注按钮在名称这一行、整个落在白底里。 */
.lsfc,
.lsfc-gate-box {
    --lsfc-ink: #111827;
    --lsfc-text: #374151;
    --lsfc-sub: #6b7280;
    --lsfc-mute: #9ca3af;
    --lsfc-line: #e9ecf1;
    --lsfc-line-soft: #f1f3f6;
    --lsfc-hover: #f7f8fa;
    --lsfc-gate: #f59e0b;
}

.lsfc {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    padding: 28px 0 56px;
    color: var(--lsfc-ink);
    font-size: 14px;
    line-height: 1.5;
}

:where(.lsfc, .lsfc-gate-box) a { color: inherit; text-decoration: none; }
:where(.lsfc, .lsfc-gate-box) button { font: inherit; cursor: pointer; }
:where(.lsfc, .lsfc-gate-box) img { display: block; }
:where(.lsfc, .lsfc-gate-box) p { margin: 0; }
:where(.lsfc, .lsfc-gate-box) h2 { margin: 0; }

.lsfc-bav { flex: none; border-radius: 12px; object-fit: cover; background: #e5e7eb; }
.lsfc-broken { background: #e5e7eb; }
.lsfc-hit { background: rgba(250, 204, 21, .35); color: inherit; border-radius: 2px; }
.lsfc-body { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 24px; align-items: start; }

/* 左侧栏 */
.lsfc-side { position: sticky; top: calc(var(--ls-header-height, 64px) + 16px); padding: 10px 8px 8px; background: #fff; border: 1px solid var(--lsfc-line); border-radius: 14px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.lsfc-search { display: flex; align-items: center; gap: 7px; height: 36px; margin: 0 4px 8px; padding: 0 10px; border-radius: 10px; border: 1px solid #e3e7ee; background: #fff; color: var(--lsfc-sub); cursor: text; transition: border-color .15s, box-shadow .15s; }
.lsfc-search > i { font-size: 15px; color: var(--lsfc-mute); }
.lsfc-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 13px; color: var(--lsfc-ink); }
.lsfc-search input::placeholder { color: #b6bcc6; }
.lsfc-search:focus-within { border-color: rgba(var(--ls-primary-rgb), .6); box-shadow: 0 0 0 3px rgba(var(--ls-primary-rgb), .1); }
.lsfc-search-x { display: none; padding: 0; border: 0; background: transparent; font-size: 16px; color: var(--lsfc-mute); }
.lsfc-search.lsfc-has .lsfc-search-x { display: flex; }
.lsfc-nav-i { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; font-size: 14px; color: var(--lsfc-text); text-align: left; transition: background .12s, color .12s; }
.lsfc-nav-i > i { flex: none; font-size: 17px; color: var(--lsfc-mute); }
.lsfc-nav-i > img { flex: none; width: 17px; height: 17px; object-fit: contain; }
.lsfc-nav-i span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lsfc-nav-i em { flex: none; font-style: normal; font-size: 12px; color: var(--lsfc-mute); font-variant-numeric: tabular-nums; }
.lsfc-nav-i:hover { background: var(--lsfc-hover); }
.lsfc-nav-i.lsfc-on { background: rgba(var(--ls-primary-rgb), .08); color: var(--ls-primary-hover); }
.lsfc-nav-i.lsfc-on > i,
.lsfc-nav-i.lsfc-on em { color: var(--ls-primary); }
.lsfc-nav-sep { height: 1px; margin: 6px 10px; background: var(--lsfc-line-soft); }
.lsfc-side-f { margin: 8px 4px 0; padding: 10px 8px 4px; border-top: 1px solid var(--lsfc-line-soft); font-size: 12px; line-height: 1.75; color: var(--lsfc-mute); font-variant-numeric: tabular-nums; }

/* 分区小节 */
.lsfc-sec + .lsfc-sec { margin-top: 30px; }
.lsfc-sec-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.lsfc-sec-h h2 { font-size: 17px; font-weight: 600; color: var(--lsfc-ink); white-space: nowrap; }
.lsfc-sec-h p { min-width: 0; font-size: 13px; color: var(--lsfc-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lsfc-sec-h span { margin-left: auto; font-size: 12.5px; color: var(--lsfc-mute); white-space: nowrap; }
.lsfc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

/* 卡片 */
.lsfc-card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--lsfc-line); border-radius: 14px; overflow: hidden; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.lsfc-card:hover { border-color: #d5dae2; box-shadow: 0 8px 24px rgba(16, 24, 40, .07); }
.lsfc-cover { position: relative; display: block; aspect-ratio: 3 / 1; overflow: hidden; background: #e5e7eb; }
.lsfc-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.lsfc-card:hover .lsfc-cover img { transform: scale(1.04); }
/* 封面上的访问条件：深色底保证在任何图上都看得清，写法与全站一致——琥珀色小圆点加原话 */
.lsfc-cover-gate { position: absolute; right: 10px; top: 10px; max-width: calc(100% - 20px); height: 24px; padding: 0 9px; border-radius: 6px; background: rgba(17, 24, 39, .62); color: #fff; font-size: 12px; line-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; backdrop-filter: blur(4px); }
.lsfc-cover-gate::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--lsfc-gate); vertical-align: 2px; }
.lsfc-in { position: relative; flex: 1; display: flex; flex-direction: column; padding: 0 18px 16px; }
.lsfc-av { align-self: flex-start; display: block; margin-top: -29px; border: 3px solid #fff; border-radius: 14px; background: #fff; box-shadow: 0 2px 6px rgba(16, 24, 40, .12); }
.lsfc-av img { width: 58px; height: 58px; border-radius: 11px; object-fit: cover; background: #e5e7eb; }
.lsfc-row { display: flex; align-items: center; gap: 12px; min-width: 0; margin-top: 10px; }
.lsfc-name { flex: 1; min-width: 0; font-size: 16px; font-weight: 500; color: var(--lsfc-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lsfc-card:hover .lsfc-name { color: var(--ls-primary); }
.lsfc-desc { height: 40px; margin-top: 4px; font-size: 13px; line-height: 20px; color: var(--lsfc-sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lsfc-stat { display: flex; gap: 16px; margin-top: 12px; font-size: 12.5px; color: var(--lsfc-mute); white-space: nowrap; }
.lsfc-stat b { margin-left: 4px; font-weight: 400; color: var(--lsfc-text); font-variant-numeric: tabular-nums; }
.lsfc-last { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--lsfc-line-soft); font-size: 12.5px; color: var(--lsfc-sub); }
.lsfc-last > i { flex: none; font-size: 14px; color: var(--lsfc-mute); }
.lsfc-last span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lsfc-last span img.ls-emoji { width: 1.25em; height: 1.25em; margin: 0 1px; vertical-align: -0.25em; object-fit: contain; }
.lsfc-last:hover span { color: var(--ls-primary); }
.lsfc-last time { flex: none; color: var(--lsfc-mute); font-variant-numeric: tabular-nums; }
.lsfc-last.lsfc-last-lock { color: var(--lsfc-mute); }
.lsfc-last.lsfc-last-lock:hover span { color: var(--lsfc-mute); }
.lsfc-none { padding: 64px 0; background: #fff; border: 1px solid var(--lsfc-line); border-radius: 14px; text-align: center; font-size: 13.5px; color: var(--lsfc-mute); }
.lsfc-none i { display: block; margin-bottom: 10px; font-size: 40px; color: #d1d5db; }

/* 关注按钮：未关注是主色描边，已关注是灰底，悬停在已关注上提示取消 */
.lsfc-follow { flex: none; height: 30px; min-width: 72px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(var(--ls-primary-rgb), .45); background: #fff; color: var(--ls-primary); font-size: 12.5px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.lsfc-follow i { font-size: 14px; }
.lsfc-follow:hover { background: rgba(var(--ls-primary-rgb), .06); }
.lsfc-follow.lsfc-on { border-color: #e5e7eb; background: #f3f4f6; color: var(--lsfc-sub); }
.lsfc-follow.lsfc-on:hover { border-color: #fecaca; background: #fef2f2; color: #dc2626; }
.lsfc-follow .lsfc-follow-off { display: none; }
.lsfc-follow.lsfc-on:hover .lsfc-follow-on { display: none; }
.lsfc-follow.lsfc-on:hover .lsfc-follow-off { display: inline; }

/* 访问提示弹窗 */
.lsfc-btn { height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid #e5e7eb; background: #fff; color: var(--lsfc-text); font-size: 13.5px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; transition: border-color .15s, color .15s, background .15s; }
.lsfc-btn:hover { border-color: #cfd6e0; color: var(--lsfc-ink); }
.lsfc-btn:disabled { opacity: .6; cursor: default; }
.lsfc-btn-primary { background: var(--ls-primary); border-color: var(--ls-primary); color: #fff; }
.lsfc-btn-primary:hover { background: var(--ls-primary-hover); border-color: var(--ls-primary-hover); color: #fff; }
.lsfc-gate-mask { position: fixed; inset: 0; z-index: 2000; background: rgba(15, 23, 42, .45); }
.lsfc-gate-box { position: fixed; left: 50%; top: 50%; z-index: 2001; transform: translate(-50%, -50%); width: 440px; max-width: calc(100vw - 32px); border-radius: 16px; background: #fff; box-shadow: 0 24px 64px rgba(15, 23, 42, .28); overflow: hidden; color: var(--lsfc-ink); font-size: 14px; line-height: 1.5; }
.lsfc-gate-h { display: flex; align-items: center; gap: 12px; padding: 20px 22px 0; }
.lsfc-gate-h b { display: block; font-size: 16px; font-weight: 600; }
.lsfc-gate-h small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--lsfc-mute); }
.lsfc-gate-x { align-self: flex-start; margin-left: auto; padding: 0; border: 0; background: transparent; font-size: 20px; color: var(--lsfc-mute); }
.lsfc-gate-b { padding: 16px 22px 0; }
.lsfc-gate-tip { font-size: 13px; line-height: 1.7; color: var(--lsfc-sub); }
.lsfc-gate-opt { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--lsfc-line); font-size: 13.5px; color: var(--lsfc-text); }
.lsfc-gate-opt > i { flex: none; font-size: 18px; color: var(--lsfc-sub); }
.lsfc-gate-opt > span { flex: 1; min-width: 0; }
.lsfc-gate-opt small { display: block; margin-top: 2px; font-size: 12px; color: var(--lsfc-mute); }
.lsfc-gate-opt em { flex: none; font-style: normal; font-size: 12.5px; color: #dc2626; }
.lsfc-gate-opt .lsfc-btn { flex: none; height: 32px; border-radius: 8px; font-size: 13px; }
.lsfc-gate-pwd { flex: 1; min-width: 0; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid #e3e7ee; outline: 0; font-size: 13px; }
.lsfc-gate-pwd:focus { border-color: rgba(var(--ls-primary-rgb), .6); }
.lsfc-gate-f { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 22px 20px; }
