/**
 * ============================================================================
 * 论坛模块样式 - 暗金轻奢主题
 * ============================================================================
 * 包含: 首页、分类页、帖子详情页、分类卡片、搜索、操作按钮、Toast
 * ============================================================================
 */

/* ==========================================================================
   通用变量
   ========================================================================== */
:root {
    --fm-primary: #C9A96E;
    --fm-primary-light: #E8D5A3;
    --fm-primary-dark: #B8943F;
    --fm-bg-dark: #0D1117;
    --fm-bg-card: #161B22;
    --fm-bg-hover: #21262D;
    --fm-border: rgba(201, 169, 110, 0.12);
    --fm-text: #E6EDF3;
    --fm-text-secondary: #8B949E;
    --fm-text-muted: #484F58;
}

/* ==========================================================================
   页面头部横幅
   ========================================================================== */
.fm-banner {
    position: relative;
    padding: 60px 0 50px;
    background: linear-gradient(135deg, #0A0E14 0%, #161B22 50%, #0D1117 100%);
    overflow: hidden;
}

.fm-banner::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.fm-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.fm-banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.fm-banner-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #E6EDF3;
    margin-bottom: 12px;
}

.fm-banner-title .gradient-text {
    background: linear-gradient(135deg, #C9A96E, #E8D5A3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fm-banner-desc {
    font-size: 1rem;
    color: #8B949E;
    max-width: 600px;
    margin: 0 auto 24px;
}

.fm-banner-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.fm-banner-actions .btn {
    height: 44px;
    padding: 0 24px;
    font-size: 15px;
}

/* ==========================================================================
   搜索栏
   ========================================================================== */
.fm-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto;
}

.fm-search-input {
    flex: 1;
    height: 40px;
    padding: 0 16px;
    font-size: 14px;
    color: #E6EDF3;
    background: #21262D;
    border: 1px solid rgba(201, 169, 110, 0.15);
    border-radius: 20px;
    outline: none;
    transition: all 0.2s;
}

.fm-search-input:focus {
    border-color: #C9A96E;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

.fm-search-input::placeholder {
    color: #484F58;
}

.fm-search-btn {
    height: 40px;
    padding: 0 20px;
    font-size: 14px;
    color: #0D1117;
    background: linear-gradient(135deg, #C9A96E, #B8943F);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.fm-search-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ==========================================================================
   分类导航
   ========================================================================== */
.fm-categories {
    background: #161B22;
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
    padding: 16px 0;
}

.fm-categories-inner {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.fm-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    color: #8B949E;
    background: #21262D;
    border: 1px solid rgba(201, 169, 110, 0.15);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.fm-cat-btn:hover {
    color: #C9A96E;
    border-color: rgba(201, 169, 110, 0.3);
}

.fm-cat-btn.active {
    color: #0D1117;
    background: linear-gradient(135deg, #C9A96E, #B8943F);
    border-color: transparent;
    font-weight: 500;
}

.fm-cat-btn i {
    font-size: 12px;
}

/* ==========================================================================
   分类卡片网格 (分类页)
   ========================================================================== */
.fm-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

.fm-cat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: #161B22;
    border: 1px solid rgba(48, 54, 61, 0.6);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.fm-cat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #C9A96E, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.fm-cat-card:hover {
    border-color: rgba(201, 169, 110, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(201, 169, 110, 0.08);
}

.fm-cat-card:hover::before {
    opacity: 1;
}

.fm-cat-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 169, 110, 0.08);
    color: #C9A96E;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all 0.3s;
}

.fm-cat-card:hover .fm-cat-card-icon {
    background: rgba(201, 169, 110, 0.15);
    transform: scale(1.08);
}

.fm-cat-card-body {
    flex: 1;
    min-width: 0;
}

.fm-cat-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #E6EDF3;
    margin-bottom: 6px;
    line-height: 1.3;
}

.fm-cat-card-desc {
    font-size: 0.8125rem;
    color: #6E7681;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.fm-cat-card-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.fm-cat-card-count {
    font-size: 0.75rem;
    color: #484F58;
    white-space: nowrap;
}

.fm-cat-card-count i {
    color: #C9A96E;
    margin-right: 4px;
}

.fm-cat-card-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(201, 169, 110, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C9A96E;
    font-size: 0.75rem;
    transition: all 0.3s;
}

.fm-cat-card:hover .fm-cat-card-arrow {
    background: rgba(201, 169, 110, 0.2);
    transform: translateX(4px);
}

/* ==========================================================================
   帖子列表区域
   ========================================================================== */
.fm-section {
    padding: 40px 0 60px;
    background: #0D1117;
    min-height: 500px;
}

.fm-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.fm-list-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #E6EDF3;
}

.fm-list-actions {
    display: flex;
    gap: 8px;
}

.fm-topic-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fm-topic-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #161B22;
    border: 1px solid rgba(201, 169, 110, 0.08);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.fm-topic-item:hover {
    background: #21262D;
    border-color: rgba(201, 169, 110, 0.2);
    transform: translateY(-2px);
}

.fm-topic-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(201, 169, 110, 0.2);
}

.fm-topic-body {
    flex: 1;
    min-width: 0;
}

.fm-topic-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.fm-topic-badge {
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
}

.fm-topic-badge.top {
    color: #0D1117;
    background: linear-gradient(135deg, #C9A96E, #E8D5A3);
}

.fm-topic-badge.hot {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.fm-topic-title {
    font-size: 15px;
    font-weight: 500;
    color: #E6EDF3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fm-topic-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #8B949E;
}

.fm-topic-meta .author {
    color: #C9A96E;
    font-weight: 500;
}

.fm-topic-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #8B949E;
}

.fm-topic-stats i {
    margin-right: 4px;
}

.fm-topic-stats .reply-count {
    color: #C9A96E;
}

/* ==========================================================================
   空状态
   ========================================================================== */
.fm-empty {
    text-align: center;
    padding: 80px 20px;
}

.fm-empty i {
    font-size: 64px;
    color: #21262D;
    margin-bottom: 20px;
}

.fm-empty p {
    font-size: 16px;
    color: #8B949E;
    margin-bottom: 20px;
}

.fm-empty .btn {
    margin-top: 8px;
}

/* ==========================================================================
   面包屑
   ========================================================================== */
.fm-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #484F58;
    padding: 16px 0;
}

.fm-breadcrumb a {
    color: #8B949E;
    text-decoration: none;
    transition: color 0.2s;
}

.fm-breadcrumb a:hover {
    color: #C9A96E;
}

.fm-breadcrumb .separator {
    color: #30363D;
    font-size: 10px;
}

/* ==========================================================================
   发帖弹窗
   ========================================================================== */
.fm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.fm-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.fm-modal {
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: #161B22;
    border: 1px solid rgba(201, 169, 110, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s;
}

.fm-modal-overlay.active .fm-modal {
    transform: scale(1);
}

.fm-modal-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
    font-size: 18px;
    font-weight: 600;
    color: #E6EDF3;
}

.fm-modal-title i.icon-pen {
    color: #C9A96E;
    margin-right: 8px;
}

.fm-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B949E;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.fm-modal-close:hover {
    color: #E6EDF3;
    background: #21262D;
}

.fm-modal form {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

.fm-form-group {
    margin-bottom: 20px;
}

.fm-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #E6EDF3;
    margin-bottom: 8px;
}

.fm-form-required {
    color: var(--danger-color, #EF4444);
}

.fm-form-input,
.fm-form-select,
.fm-form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: #E6EDF3;
    background: #21262D;
    border: 1px solid rgba(201, 169, 110, 0.15);
    border-radius: 8px;
    transition: all 0.2s;
}

.fm-form-input:focus,
.fm-form-select:focus,
.fm-form-textarea:focus {
    outline: none;
    border-color: #C9A96E;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

.fm-form-input::placeholder,
.fm-form-textarea::placeholder {
    color: #484F58;
}

.fm-form-textarea {
    min-height: 150px;
    resize: vertical;
}

.fm-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238B949E' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
}

.fm-form-select option {
    background: #21262D;
    color: #E6EDF3;
}

/* ==========================================================================
   帖子详情页
   ========================================================================== */
.fm-detail-section {
    padding: 32px 0 60px;
    background: #0D1117;
}

.fm-detail-card {
    background: #161B22;
    border-radius: 12px;
    padding: 28px;
    border: 1px solid rgba(201, 169, 110, 0.08);
    margin-bottom: 24px;
}

.fm-detail-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

.fm-detail-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.fm-detail-author {
    font-size: 15px;
    font-weight: 500;
    color: #E6EDF3;
}

.fm-detail-time {
    font-size: 12px;
    color: #484F58;
}

.fm-detail-category {
    font-size: 12px;
    color: #C9A96E;
    background: rgba(201, 169, 110, 0.08);
    border: 1px solid rgba(201, 169, 110, 0.15);
    border-radius: 20px;
    padding: 2px 10px;
}

.fm-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #E6EDF3;
    margin-bottom: 20px;
    line-height: 1.4;
}

.fm-detail-content {
    font-size: 15px;
    color: #C9D1D9;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
}

.fm-detail-content p {
    margin-bottom: 16px;
}

.fm-detail-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
}

.fm-detail-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(201, 169, 110, 0.08);
    font-size: 13px;
    color: #484F58;
}

.fm-detail-stats i {
    color: #C9A96E;
    margin-right: 4px;
}

/* ==========================================================================
   帖子操作按钮 (点赞、收藏、删除)
   ========================================================================== */
.fm-actions {
    display: flex;
    gap: 12px;
    padding: 20px 28px;
    border-top: 1px solid rgba(201, 169, 110, 0.08);
}

.fm-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    color: #8B949E;
    background: #21262D;
    border: 1px solid rgba(201, 169, 110, 0.15);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.fm-action-btn:hover {
    color: #C9A96E;
    border-color: rgba(201, 169, 110, 0.3);
}

.fm-action-btn.active {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.fm-action-btn.danger {
    color: #8B949E;
}

.fm-action-btn.danger:hover {
    color: #EF4444;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.08);
}

/* ==========================================================================
   回复区域
   ========================================================================== */
.fm-replies-title {
    font-size: 16px;
    font-weight: 600;
    color: #E6EDF3;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fm-replies-title i {
    color: #C9A96E;
}

.fm-reply-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.fm-reply-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: #21262D;
    border-radius: 10px;
}

.fm-reply-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.fm-reply-body {
    flex: 1;
    min-width: 0;
}

.fm-reply-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.fm-reply-name {
    font-size: 14px;
    font-weight: 500;
    color: #E6EDF3;
}

.fm-reply-date {
    font-size: 12px;
    color: #484F58;
}

.fm-reply-content {
    font-size: 14px;
    color: #C9D1D9;
    line-height: 1.7;
}

.fm-reply-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.fm-reply-action {
    font-size: 12px;
    color: #8B949E;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.fm-reply-action:hover {
    color: #C9A96E;
}

/* 回复表单 */
.fm-reply-form {
    background: #161B22;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(201, 169, 110, 0.08);
}

.fm-reply-form-title {
    font-size: 16px;
    font-weight: 600;
    color: #E6EDF3;
    margin-bottom: 16px;
}

.fm-reply-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 14px;
    font-size: 14px;
    color: #E6EDF3;
    background: #21262D;
    border: 1px solid rgba(201, 169, 110, 0.15);
    border-radius: 8px;
    resize: vertical;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.fm-reply-textarea:focus {
    outline: none;
    border-color: #C9A96E;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

.fm-reply-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

/* ==========================================================================
   分类描述文字
   ========================================================================== */
.fm-category-desc {
    font-size: 13px;
    color: #8B949E;
}

/* ==========================================================================
   Toast 通知
   ========================================================================== */
.fm-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    color: #E6EDF3;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.fm-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.fm-toast-success {
    background: rgba(34, 197, 94, 0.9);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.fm-toast-error {
    background: rgba(239, 68, 68, 0.9);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.fm-toast-info {
    background: rgba(201, 169, 110, 0.9);
    color: #0D1117;
    border: 1px solid rgba(201, 169, 110, 0.3);
}

.fm-toast-warning {
    background: rgba(245, 158, 11, 0.9);
    color: #0D1117;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   分页
   ========================================================================== */
.fm-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
}

.fm-page-btn {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #8B949E;
    background: #161B22;
    border: 1px solid rgba(201, 169, 110, 0.1);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.fm-page-btn:hover {
    color: #C9A96E;
    border-color: rgba(201, 169, 110, 0.3);
}

.fm-page-btn.active {
    color: #0D1117;
    background: linear-gradient(135deg, #C9A96E, #B8943F);
    border-color: transparent;
    font-weight: 500;
}

/* ==========================================================================
   加载状态
   ========================================================================== */
.fm-loading {
    text-align: center;
    padding: 40px;
    color: #484F58;
}

.fm-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(201, 169, 110, 0.2);
    border-top-color: #C9A96E;
    border-radius: 50%;
    animation: fm-spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes fm-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 768px) {
    .fm-banner {
        padding: 40px 0 30px;
    }

    .fm-banner-title {
        font-size: 1.6rem;
    }

    .fm-banner-actions {
        flex-direction: column;
        align-items: center;
    }

    .fm-banner-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .fm-categories-inner {
        gap: 8px;
    }

    .fm-cat-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .fm-cat-grid {
        grid-template-columns: 1fr;
    }

    .fm-cat-card {
        padding: 18px;
    }

    .fm-topic-item {
        flex-wrap: wrap;
        padding: 14px 16px;
    }

    .fm-topic-avatar {
        width: 36px;
        height: 36px;
    }

    .fm-topic-stats {
        width: 100%;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(201, 169, 110, 0.06);
    }

    .fm-detail-card {
        padding: 20px;
    }

    .fm-detail-title {
        font-size: 1.2rem;
    }

    .fm-detail-header {
        flex-wrap: wrap;
    }

    .fm-actions {
        flex-wrap: wrap;
        padding: 16px 20px;
    }

    .fm-reply-item {
        padding: 12px;
    }

    .fm-reply-form {
        padding: 16px;
    }

    .fm-modal {
        width: 95%;
        max-height: 95vh;
    }

    .fm-modal form {
        padding: 20px;
    }

    .fm-search-bar {
        flex-direction: column;
    }

    .fm-search-input {
        width: 100%;
    }

    .fm-content-lock {
        padding: 30px 20px;
    }

    .fm-lock-actions {
        flex-direction: column;
    }

    .fm-lock-actions .btn {
        width: 100%;
    }

    .fm-password-box {
        flex-direction: column;
    }

    .fm-password-input {
        width: 100%;
    }
}

/* ==========================================================================
   内容锁定遮罩（访客查看30%内容）
   ========================================================================== */
.fm-detail-content-wrapper {
    position: relative;
}

.fm-content-preview {
    position: relative;
    max-height: 160px;
    overflow: hidden;
}

.fm-content-blur {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #161B22 80%);
    pointer-events: none;
}

.fm-content-lock {
    position: relative;
    margin-top: -50px;
    padding: 36px;
    background: #161B22;
    border: 1px solid rgba(201, 169, 110, 0.15);
    border-radius: 12px;
    text-align: center;
    z-index: 10;
}

.fm-lock-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 169, 110, 0.1);
    border-radius: 50%;
    color: #C9A96E;
    font-size: 22px;
}

.fm-content-lock h3 {
    font-size: 17px;
    font-weight: 600;
    color: #E6EDF3;
    margin-bottom: 6px;
}

.fm-content-lock > p {
    font-size: 13px;
    color: #8B949E;
    margin-bottom: 20px;
}

.fm-lock-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.fm-lock-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    border: none;
    font-family: inherit;
}

.fm-lock-btn-primary {
    background: rgba(88, 166, 255, 0.15);
    color: #58A6FF;
    border: 1px solid rgba(88, 166, 255, 0.25);
}

.fm-lock-btn-primary:hover {
    background: rgba(88, 166, 255, 0.25);
    transform: translateY(-1px);
}

.fm-lock-btn-gold {
    background: linear-gradient(135deg, #C9A96E, #A08255);
    color: #0D1117;
    border: 1px solid transparent;
}

.fm-lock-btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201, 169, 110, 0.3);
}

/* 付费解锁面板 */
.fm-pay-box {
    display: none;
    margin-top: 20px;
    padding: 24px;
    background: #0D1117;
    border: 1px solid rgba(201, 169, 110, 0.12);
    border-radius: 12px;
    text-align: center;
}

.fm-pay-box.show {
    display: block;
    animation: fmFadeIn 0.3s ease;
}

@keyframes fmFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.fm-pay-box-title {
    font-size: 13px;
    color: #8B949E;
    margin-bottom: 16px;
}

.fm-pay-box-title i {
    color: #3FB950;
    margin-right: 4px;
}

.fm-pay-price {
    margin-bottom: 20px;
}

.fm-pay-amount {
    font-size: 36px;
    font-weight: 700;
    color: #C9A96E;
    font-variant-numeric: tabular-nums;
}

.fm-pay-unit {
    font-size: 14px;
    color: #6E7681;
    margin-left: 4px;
}

.fm-pay-methods {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.fm-pay-method {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #161B22;
    border: 1px solid #30363D;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #8B949E;
}

.fm-pay-method input {
    display: none;
}

.fm-pay-method.active {
    border-color: #C9A96E;
    color: #E6EDF3;
    background: rgba(201, 169, 110, 0.06);
}

.fm-pay-method-icon {
    font-size: 18px;
}

.fm-pay-method-icon .fa-alipay {
    color: #1677FF;
}

.fm-pay-method-icon .fa-weixin {
    color: #07C160;
}

.fm-pay-submit-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 15px;
}

.fm-pay-hint {
    font-size: 12px;
    color: #484F58;
    margin-top: 12px;
    margin-bottom: 0;
}

/* 回复登录提示 */
.fm-reply-login-hint {
    text-align: center;
    padding: 32px;
    background: #161B22;
    border: 1px solid rgba(48, 54, 61, 0.6);
    border-radius: 12px;
    color: #8B949E;
    font-size: 14px;
}

.fm-reply-login-hint i {
    color: #C9A96E;
    margin-right: 6px;
}

.fm-reply-login-hint a {
    color: #C9A96E;
    text-decoration: none;
    font-weight: 500;
}

.fm-reply-login-hint a:hover {
    text-decoration: underline;
}

/* 回复编辑器 */
.fm-reply-editor {
    position: relative;
}

.fm-reply-form-title {
    margin-bottom: 14px;
}

/* 粘贴图片预览 */
.fm-paste-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.fm-paste-preview img {
    max-width: 120px;
    max-height: 80px;
    border-radius: 6px;
    border: 1px solid #30363D;
    object-fit: cover;
}

.fm-paste-hint {
    font-size: 12px;
    color: #484F58;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fm-paste-hint i {
    color: #6E7681;
}

/* 响应式 */
@media (max-width: 768px) {
    .fm-content-lock {
        padding: 24px 16px;
    }

    .fm-lock-actions {
        flex-direction: column;
    }

    .fm-lock-btn {
        width: 100%;
        justify-content: center;
    }

    .fm-pay-box {
        padding: 16px;
    }

    .fm-pay-amount {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .fm-cat-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .fm-cat-card-stats {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }
}
