﻿/* =========================================
   Forum UI - Final Clean White Theme
   Index + Detail + New
   ========================================= */

:root {
    --forum-bg: #f7f7f9;
    --forum-card: rgba(255,255,255,.92);
    --forum-card-2: #ffffff;
    --forum-text: #111111;
    --forum-title: #111111;
    --forum-muted: rgba(17,17,17,.58);
    --forum-line: rgba(0,0,0,.08);
    --forum-line-2: rgba(0,0,0,.06);
    --forum-soft: #f4f4f6;
    --forum-soft-2: #fafafa;
    --forum-shadow: 0 18px 42px rgba(0,0,0,.06);
    --forum-shadow-2: 0 12px 28px rgba(0,0,0,.05);
    --forum-radius: 24px;
    --forum-radius-2: 16px;
    --forum-primary: #111111;
    --forum-primary-2: #000000;
    --forum-gold: #b7791f;
    --forum-gold-bg: rgba(245,158,11,.10);
    --forum-blue: #2563eb;
    --forum-purple: #7c3aed;
    --forum-danger: #b91c1c;
    --forum-danger-bg: rgba(239,68,68,.08);
}

/* ===== Base ===== */
.forum {
    max-width: 1440px;
    margin: 0 auto;
    padding: 18px 24px 56px;
    color: var(--forum-text);
}

@media (min-width: 1500px) {
    .forum {
        max-width: 1520px;
    }
}

@media (max-width: 1100px) {
    .forum {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 860px) {
    .forum {
        padding-left: 14px;
        padding-right: 14px;
    }
}

.forum a {
    color: inherit;
}

.muted,
.forum-card__hint,
.meta,
.k,
.f-empty__s,
.forum-sub,
.forum-hero__sub,
.f-sub,
.t-excerpt,
.topic-excerpt {
    color: var(--forum-muted);
}

.soft-hr {
    height: 1px;
    background: var(--forum-line-2);
    margin: 12px 0;
    border: 0;
}

/* ===== Common cards ===== */
.forum-card,
.f-card {
    background: var(--forum-card);
    border: 1px solid rgba(255,255,255,.78);
    border-radius: var(--forum-radius);
    box-shadow: var(--forum-shadow-2);
    backdrop-filter: blur(10px);
}

.forum-card__head,
.f-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--forum-line-2);
}

.forum-card__title,
.f-card__title,
.section-title,
.t-title,
.od-title {
    font-weight: 900;
    color: var(--forum-title);
    font-size: 16px;
    letter-spacing: .01em;
}

.forum-card__hint,
.f-card__hint {
    font-size: 12px;
}

.forum-toast,
.f-toast {
    margin: 10px 0 14px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(34,197,94,.16);
    background: rgba(34,197,94,.08);
    color: #166534;
    font-weight: 600;
}

/* ===== Buttons ===== */
.btn,
.f-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--forum-line);
    background: var(--forum-soft);
    color: var(--forum-text);
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

    .btn:hover,
    .f-btn:hover {
        transform: translateY(-1px);
        background: #ebebee;
    }

.btn-primary,
.f-btn--primary {
    border-color: var(--forum-primary);
    background: linear-gradient(180deg, var(--forum-primary), var(--forum-primary-2));
    color: #fff;
    box-shadow: 0 12px 24px rgba(0,0,0,.14);
}

    .btn-primary:hover,
    .f-btn--primary:hover {
        background: #000;
    }

.btn-secondary {
    background: var(--forum-soft);
    color: var(--forum-text);
}

.btn-compact {
    min-height: 36px !important;
    padding: 7px 10px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
}

.btn.is-liked,
.btn-liked {
    border-color: rgba(239,68,68,.22) !important;
    background: var(--forum-danger-bg) !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,.08);
}

/* ===== Tags / pills ===== */
.pill,
.t-pin,
.pill-pin {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    border: 1px solid rgba(245,158,11,.20);
    background: var(--forum-gold-bg);
    color: var(--forum-gold);
}

.pill-op {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    border: 1px solid rgba(124,58,237,.14);
    background: rgba(124,58,237,.08);
    color: #6d28d9;
}

.tag,
.t-tag,
.c-tag {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--forum-line);
    background: var(--forum-soft);
    color: var(--forum-text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

    .tag:hover,
    .t-tag:hover,
    .c-tag:hover {
        transform: translateY(-1px);
        background: #ebebee;
    }

    .forum-tags .tag.active,
    .c-tag.is-active {
        background: linear-gradient(180deg, var(--forum-primary), var(--forum-primary-2));
        color: #fff;
        border-color: var(--forum-primary);
        box-shadow: 0 10px 20px rgba(0,0,0,.12);
    }

.forum-tags {
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.forum-rules,
.f-rules {
    margin: 0;
    padding: 6px 18px 16px 20px;
    color: var(--forum-muted);
    line-height: 1.8;
}

/* ===== Inputs ===== */
.forum-filter input,
.forum-filter select,
.f-filter input,
.f-filter select,
.f-input,
.f-textarea,
.reply-box textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--forum-line);
    background: #fff;
    color: var(--forum-text);
    outline: none;
}

.forum-filter input,
.forum-filter select,
.f-filter input,
.f-filter select,
.f-input {
    min-height: 44px;
    padding: 10px 12px 10px 30px;
}

.f-input,
.f-textarea {
    padding: 12px;
}

.f-textarea {
    min-height: 260px;
    resize: vertical;
}

.reply-box textarea {
    min-height: 120px;
    resize: vertical;
    padding: 12px;
}

    .forum-filter input:focus,
    .forum-filter select:focus,
    .f-filter input:focus,
    .f-filter select:focus,
    .f-input:focus,
    .f-textarea:focus,
    .reply-box textarea:focus {
        border-color: rgba(0,0,0,.14);
        box-shadow: 0 0 0 3px rgba(0,0,0,.04);
    }

.f-err,
.cp-val,
.ck-err--block {
    font-size: 12px;
    color: #b91c1c;
    margin-top: 6px;
}

/* ===== Head / Hero ===== */
.forum-head,
.f-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.forum-title,
.f-title {
    margin: 0;
    font-size: 34px;
    letter-spacing: -.02em;
    font-weight: 900;
    color: var(--forum-title);
}

.forum-sub,
.f-sub {
    margin-top: 6px;
    font-size: 14px;
}

.forum-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.forum-hero {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-end;
    margin: 6px 0 12px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: var(--forum-radius);
    background: radial-gradient(900px 260px at 0% 0%, rgba(124,58,237,.08), transparent 55%), radial-gradient(800px 240px at 100% 0%, rgba(37,99,235,.06), transparent 55%), var(--forum-card);
    box-shadow: var(--forum-shadow);
}

.forum-hero__kicker {
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--forum-muted);
}

.forum-hero__title {
    margin: 4px 0 0;
    font-weight: 950;
    letter-spacing: -.02em;
    font-size: 34px;
    color: var(--forum-title);
}

.forum-hero__sub {
    margin-top: 6px;
    font-size: 14px;
}

.forum-hero__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 860px) {
    .forum-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== Filter ===== */
.forum-filter-card,
.f-filterbar {
    margin-bottom: 14px;
}

.forum-filter,
.f-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px;
    align-items: center;
}

.ff-field,
.f-field {
    position: relative;
    flex: 1 1 240px;
    min-width: 220px;
}

.f-field--search {
    flex: 1 1 240px;
}

.ff-ic,
.f-ic {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--forum-muted);
    font-size: 12px;
    pointer-events: none;
}

/* ===== Grids ===== */
.forum-grid,
.f-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.forum-detail-grid,
.editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.forum-side,
.f-side,
.editor-side {
    min-width: 0;
    position: static !important;
    top: auto !important;
    align-self: start;
}

    .forum-side .forum-card,
    .f-side .f-card {
        position: static !important;
        top: auto !important;
    }

@media (max-width: 980px) {
    .forum-grid,
    .f-grid,
    .forum-detail-grid,
    .editor-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .forum-side {
        order: 2;
    }

    .ff-field,
    .f-field,
    .f-field--search {
        min-width: 180px;
    }
}

@media (max-width: 560px) {
    .forum-filter input,
    .forum-filter select,
    .f-filter input,
    .f-filter select {
        min-width: 100%;
    }

    .ff-field,
    .f-field,
    .f-field--search {
        flex: 1 1 100%;
    }
}

/* ===== Index topic rows ===== */
.topic-list,
.topic-list.v2,
.t-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

.topic,
.topic.v2,
.t-row {
    text-decoration: none;
    color: var(--forum-text);
    border: 1px solid var(--forum-line);
    background: var(--forum-soft-2);
    border-radius: 22px;
    transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

    .topic:hover,
    .topic.v2:hover,
    .t-row:hover {
        transform: translateY(-1px);
        border-color: rgba(0,0,0,.12);
        background: #fff;
        box-shadow: 0 14px 28px rgba(0,0,0,.06);
    }

    .topic.v2,
    .t-row {
        display: flex;
        gap: 12px;
        padding: 16px 18px;
    }

.topic {
    display: grid;
    grid-template-columns: 1fr 190px;
    gap: 12px;
    padding: 12px;
}

    .topic.v2.is-pinned,
    .t-row.is-pinned,
    .topic.is-pinned {
        position: relative;
        background: linear-gradient(120deg, rgba(245,158,11,.08), #fff);
        border-color: rgba(245,158,11,.16);
        box-shadow: 0 12px 26px rgba(245,158,11,.08);
    }

        .topic.v2.is-pinned::before,
        .t-row.is-pinned::before {
            content: "";
            position: absolute;
            left: 0;
            top: 10px;
            bottom: 10px;
            width: 4px;
            border-radius: 4px;
            background: linear-gradient(to bottom, #f59e0b, rgba(245,158,11,.3));
        }

.topic-left {
    flex: 0 0 auto;
}

.topic-avatar,
.avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid var(--forum-line);
    background: var(--forum-soft);
    flex: 0 0 auto;
}

.avatar-lg {
    width: 38px;
    height: 38px;
}

.topic-avatar--empty {
    display: inline-block;
    background: var(--forum-soft);
}

.topic-mid,
.topic-main,
.t-left {
    flex: 1;
    min-width: 0;
}

.topic-title,
.t-title {
    font-size: 16px;
    font-weight: 950;
    color: var(--forum-title);
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.25;
    min-width: 0;
}

.t-title__text,
.hero-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.topic-excerpt,
.t-excerpt,
.topic-preview {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.5;
    min-width: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.topic-meta,
.t-meta,
.detail-meta,
.hero-meta {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
}

    .topic-meta .meta,
    .topic-meta .meta-user,
    .t-meta .t-author {
        color: var(--forum-muted);
    }

.topic-right,
.t-right {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.topic-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

.stat,
.t-stat,
.stat-pill {
    min-width: 74px;
    text-align: center;
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid var(--forum-line);
    background: #fff;
}

    .num,
    .t-num,
    .stat-pill .num {
        font-weight: 950;
        font-size: 16px;
        color: var(--forum-title);
    }

    .lab,
    .t-lab,
    .stat-pill .lab {
        font-size: 11px;
        color: var(--forum-muted);
        margin-top: 2px;
    }

.t-go,
.dot,
.t-dot {
    color: var(--forum-muted);
    opacity: .65;
}

.meta-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.u-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
    font-weight: 700;
}

/* ===== Pager ===== */
.forum-pager,
.f-pager {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding: 12px;
}

.pg {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--forum-line);
    background: #fff;
    color: var(--forum-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .pg:hover {
        background: var(--forum-soft);
    }

    .pg.current {
        background: var(--forum-primary);
        color: #fff;
        border-color: var(--forum-primary);
        font-weight: 900;
    }

    .pg.disabled {
        opacity: .45;
        pointer-events: none;
    }

/* ===== Detail page ===== */
.forum-detail-head,
.post-card {
    padding: 16px;
}

.back {
    display: inline-flex;
    text-decoration: none;
    color: var(--forum-muted);
    margin-bottom: 10px;
    font-weight: 600;
}

    .back:hover {
        color: var(--forum-text);
    }

.detail-title,
.hero-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 28px;
    font-weight: 980;
    color: var(--forum-title);
    letter-spacing: -.02em;
}

.detail-actions,
.hero-actions,
.reply-actions,
.editor-actions,
.side-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.post-top,
.post-header,
.reply-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.post-who,
.post-author,
.reply-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.post-badges,
.reply-right {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.post-body,
.post-content,
.reply-content,
.post-content .para,
.reply-content .para,
.quote {
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: pre-wrap;
}

.post-body,
.post-content,
.reply-content {
    line-height: 1.7;
    font-size: 14px;
    color: var(--forum-text);
}

    .post-content a,
    .reply-content a {
        word-break: break-all;
    }

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.post-img,
.post-video {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--forum-line);
    background: var(--forum-soft);
}

.post-video {
    max-height: 520px;
}

.reply-list {
    margin-top: 10px;
}

.reply {
    border: 1px solid var(--forum-line);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 14px;
    background: #fff;
    min-width: 0;
}

.floor {
    display: inline-block;
    min-width: 36px;
    text-align: center;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--forum-soft);
    color: var(--forum-muted);
    margin-right: 8px;
    border: 1px solid var(--forum-line);
}

.reply-counter {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--forum-muted);
}

    .reply-counter .is-danger {
        color: var(--forum-danger);
        font-weight: 600;
    }

.reply-highlight {
    outline: 2px solid rgba(245,158,11,.35);
    box-shadow: 0 0 0 6px rgba(245,158,11,.10);
    border-radius: 14px;
    transition: all .2s ease;
}

/* 不再 sticky */
.reply-box,
.reply-box.sticky {
    position: static !important;
    bottom: auto !important;
    margin-top: 14px;
    border-radius: 18px;
    background: var(--forum-soft-2);
    border: 1px solid var(--forum-line);
    box-shadow: none;
    padding: 12px;
}

.reply-content.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reply-more {
    margin-top: 8px;
    font-size: 12px;
    color: var(--forum-muted);
    cursor: pointer;
    user-select: none;
}

    .reply-more:hover {
        color: var(--forum-text);
        text-decoration: underline;
    }

.like-count {
    margin-left: 6px;
    color: var(--forum-muted);
    font-size: 13px;
}

.btn-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    padding: 2px 8px;
    margin-left: 8px;
    border-radius: 999px;
    border: 1px solid var(--forum-line);
    background: #fff;
    font-size: 12px;
    font-weight: 800;
}

/* ===== Quote ===== */
.quote {
    margin: 8px 0;
    padding: 10px 12px 10px 16px;
    border-radius: 14px;
    border: 1px solid rgba(124,58,237,.16);
    background: rgba(124,58,237,.06);
    color: var(--forum-text);
    position: relative;
    line-height: 1.55;
}

    .quote::before {
        content: "";
        position: absolute;
        left: 10px;
        top: 10px;
        bottom: 10px;
        width: 3px;
        border-radius: 99px;
        background: rgba(124,58,237,.45);
    }

/* ===== Lightbox ===== */
.lb {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(10px);
    z-index: 9999;
}

.lb-box {
    position: relative;
    max-width: min(980px, 96vw);
    max-height: 88vh;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.96);
    box-shadow: 0 30px 120px rgba(0,0,0,.25);
    overflow: hidden;
}

.lb-img {
    display: block;
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
}

.lb-x {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--forum-line);
    background: #fff;
    color: var(--forum-text);
    font-size: 22px;
    cursor: pointer;
}

    .lb-x:hover {
        background: var(--forum-soft);
    }

/* ===== New / editor ===== */
.editor-side {
    padding: 14px;
}

    .editor-side .muted {
        font-size: 12px;
        line-height: 1.55;
    }

.f-field {
    margin-bottom: 12px;
}

.f-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    font-weight: 900;
    color: var(--forum-title);
    margin-bottom: 8px;
}

.counter {
    font-size: 12px;
    color: var(--forum-muted);
    font-weight: 700;
}

/* ===== Empty blocks ===== */
.forum-empty,
.f-empty {
    padding: 18px 16px;
    color: var(--forum-muted);
}

.f-empty__t {
    font-weight: 900;
    color: var(--forum-title);
    margin-bottom: 4px;
}

/* ===== utility ===== */
.w-100 {
    width: 100%;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
    .topic {
        grid-template-columns: 1fr;
    }

    .topic-right,
    .t-right {
        border-left: none;
        padding-left: 0;
        justify-content: flex-start;
    }

    .t-title__text {
        max-width: 100%;
    }

    .t-stat,
    .stat-pill {
        width: 70px;
    }
}

@media (max-width: 860px) {
    .topic-right {
        display: none;
    }
}

@media (max-width: 560px) {
    .topic.v2,
    .t-row,
    .topic {
        flex-direction: column;
        align-items: flex-start;
    }

    .t-right {
        width: 100%;
        justify-content: flex-end;
    }

    .t-stat,
    .stat-pill {
        width: 84px;
    }

    .forum-pager,
    .f-pager {
        justify-content: flex-start;
    }
}

/* =========================================
   Forum Index - finishing polish
   ========================================= */

/* hero 顶部按钮优化 */
.forum-hero__actions .btn,
.forum-hero__actions .btn-primary,
.forum-hero__actions .btn-secondary {
    min-width: 132px;
    height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.01em;
    box-shadow: 0 10px 22px rgba(0,0,0,.12);
}

.forum-hero__actions .btn-primary {
    background: linear-gradient(180deg, #111 0%, #000 100%);
    color: #fff;
    border: 1px solid #111;
}

    .forum-hero__actions .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 28px rgba(0,0,0,.16);
    }

.forum-hero__actions .btn-secondary {
    background: #f3f3f5;
    color: #111;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: none;
}

    .forum-hero__actions .btn-secondary:hover {
        background: #ebebee;
    }

/* 右侧边栏整体更精致 */
.forum-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    /* 右侧卡片统一更柔和 */
    .forum-side .forum-card {
        border-radius: 24px;
        background: rgba(255,255,255,.94);
        border: 1px solid rgba(255,255,255,.82);
        box-shadow: 0 14px 30px rgba(0,0,0,.05), inset 0 1px 0 rgba(255,255,255,.82);
        overflow: hidden;
    }

    /* Categories / Rules 标题更清楚 */
    .forum-side .forum-card__title {
        font-size: 17px;
        font-weight: 900;
        letter-spacing: -0.01em;
    }

/* Categories 区域优化 */
.forum-tags {
    padding: 14px 16px 16px;
    gap: 10px;
}

    .forum-tags .tag {
        min-height: 36px;
        padding: 0 14px;
        border-radius: 999px;
        background: #f3f3f5;
        border: 1px solid rgba(0,0,0,.07);
        color: #111;
        font-size: 13px;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: none;
    }

        .forum-tags .tag:hover {
            background: #ebebee;
            border-color: rgba(0,0,0,.10);
            transform: translateY(-1px);
        }

        .forum-tags .tag.active,
        .forum-tags .tag[aria-current="page"] {
            background: linear-gradient(180deg, #111 0%, #000 100%);
            color: #fff;
            border-color: #111;
            box-shadow: 0 8px 18px rgba(0,0,0,.12);
        }

/* Rules 模块更有层次 */
.forum-rules {
    padding: 6px 18px 18px 22px;
    margin: 0;
    color: rgba(17,17,17,.66);
    line-height: 1.9;
    font-size: 15px;
}

    .forum-rules li {
        margin: 0 0 4px;
    }

        .forum-rules li::marker {
            color: rgba(17,17,17,.42);
        }

/* 给 Rules 卡片底部一点呼吸感 */
.forum-side .forum-card:last-child {
    padding-bottom: 2px;
}

/* 移动端优化 */
@media (max-width: 860px) {
    .forum-hero__actions {
        width: 100%;
    }

        .forum-hero__actions .btn,
        .forum-hero__actions .btn-primary,
        .forum-hero__actions .btn-secondary {
            width: 100%;
            min-width: 0;
        }

    .forum-side .forum-card {
        border-radius: 22px;
    }

    .forum-tags {
        padding: 14px;
    }

        .forum-tags .tag {
            min-height: 34px;
            padding: 0 12px;
            font-size: 13px;
        }

    .forum-rules {
        padding: 4px 16px 16px 22px;
        font-size: 14px;
    }
}
.forum-side .forum-card__head {
    padding-left: 22px;
    padding-right: 18px;
}

.forum-side .forum-card__title {
    text-align: left;
}
.forum-side .forum-card {
    padding-top: 14px;
}

.forum-side .forum-card__title {
    opacity: 0.85;
}