/* ==================== 想法卡片用户简介样式 ==================== */

.uap-thought-meta {
    flex: 1;
    min-width: 0;
}

.uap-thought-meta-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    line-height: 1.4;
}

.uap-thought-bio {
    color: var(--uap-text-light, #6b7280);
    font-size: 13px;
    line-height: 1.5;
    margin-top: 2px;
    word-wrap: break-word;
    word-break: break-word;
}

/* ==================== 文章类型筛选按钮样式 ==================== */

.uap-post-type-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--uap-border, #e5e7eb);
}

.uap-type-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f3f4f6;
    border: 1px solid transparent;
    border-radius: 20px;
    color: var(--uap-text, #374151);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.uap-type-filter:hover {
    background: #e5e7eb;
    color: var(--uap-text, #374151);
}

.uap-type-filter.active {
    background: var(--uap-action-bg, #4f46e5);
    color: #fff;
}

.uap-type-filter.active:hover {
    background: var(--uap-action-hover, #4338ca);
    color: #fff;
}

.uap-type-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.uap-type-filter.active .uap-type-count {
    background: rgba(255, 255, 255, 0.25);
}

/* 文章类型标签 */
.uap-post-type-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 11px;
    color: var(--uap-text-light, #6b7280);
}

/* ==================== 点赞/收藏列表优化 ==================== */

:is(.uap-likes-list, .uap-favorites-list) .uap-posts-grid { gap: 0; }
:is(.uap-likes-list, .uap-favorites-list) .uap-post-type-filters { padding: 16px 22px; margin: 0; }
:is(.uap-likes-list, .uap-favorites-list) .uap-pagination,
.uap-user-comments .uap-pagination { margin: 0; padding: 16px; }

.uap-likes-list .uap-post-item,
.uap-favorites-list .uap-post-item {
    border-bottom: 1px solid var(--uap-border, #e5e7eb);
}

.uap-likes-list .uap-post-item:last-child,
.uap-favorites-list .uap-post-item:last-child {
    border-bottom: none;
}

/* 移动端适配 */
@media (max-width: 640px) {
    .uap-post-type-filters {
        padding: 12px 0;
        gap: 6px;
    }

    .uap-type-filter {
        padding: 5px 12px;
        font-size: 12px;
    }

    .uap-thought-bio {
        font-size: 12px;
    }
}

/* 想法详情页用户简介 */
.uap-thought-single-author-bio {
    display: block;
    color: var(--uap-text-light, #6b7280);
    font-size: 13px;
    line-height: 1.5;
    margin-top: 2px;
    word-wrap: break-word;
    word-break: break-word;
}

/* ==================== 文章卡片样式（点赞/收藏列表） ==================== */

.uap-post-card {
    background: var(--uap-surface);
    padding: 16px 20px;
    border-bottom: 1px solid var(--uap-border, #e5e7eb);
}

.uap-post-card:last-child {
    border-bottom: none;
}

.uap-post-card:hover {
    background: var(--uap-surface-hover);
}

.uap-post-card.is-comments-open:hover {
    background: transparent;
}

:is(.uap-likes-list, .uap-favorites-list) .uap-post-card {
    padding: 20px 22px;
    background: transparent;
    border-bottom-color: var(--uap-border-light);
}
:is(.uap-likes-list, .uap-favorites-list) .uap-post-card:hover { background: var(--uap-surface-hover); }
@media (max-width: 640px) {
    :is(.uap-likes-list, .uap-favorites-list) .uap-post-type-filters { padding: 12px 16px; }
    :is(.uap-likes-list, .uap-favorites-list) .uap-post-card { padding: 14px 16px; }
}

/* 与操作栏的间距由操作栏按图标计算（与想法卡片相同），这里不再留底边距 */
.uap-post-card-main {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
}

.uap-post-card-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.uap-post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.uap-post-card-thumb:hover img {
    transform: scale(1.05);
}

.uap-post-card-info {
    flex: 1;
    min-width: 0;
}

.uap-post-card-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.uap-post-card-title a {
    color: var(--uap-text, #374151);
    text-decoration: none;
}

.uap-post-card-title a:hover {
    color: var(--uap-action-bg, #4f46e5);
}

.uap-post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--uap-text-light, #6b7280);
}

.uap-post-card-type {
    display: inline-block;
    padding: 2px 8px;
    background: var(--uap-surface-hover);
    border-radius: 4px;
    font-size: 11px;
}

/* 移动端适配 */
@media (max-width: 640px) {
    .uap-post-card {
        padding: 12px 16px;
    }

    .uap-post-card-main {
        gap: 12px;
    }

    .uap-post-card-thumb {
        width: 100px;
        height: 66px;
    }

    .uap-post-card-title {
        font-size: 14px;
    }
}

