/* 想法发布表单容器 */
.uap-thought-form-wrapper {
    margin-bottom: 24px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
}

/* 创作列表 */
.uap-creations-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: visible;
}

/* 创作项卡片 */
.uap-creation-item {
    display: block;
    padding: 16px 20px;
    background: #fff;
    border: none;
    border-bottom: 1px solid var(--uap-border, #e5e7eb);
    border-radius: 0;
    transition: all 0.2s;
}

.uap-creation-item:last-child {
    border-bottom: none;
}

.uap-creation-item:hover {
    background: #f8fafc;
}

/* 创作类型图标 */
.uap-creation-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 10px;
    color: #6b7280;
}

.uap-creation-post .uap-creation-icon {
    background: var(--uap-primary-bg);
    color: var(--uap-action-bg, #4f46e5);
}

.uap-creation-thought .uap-creation-icon {
    background: #f0fdf4;
    color: #16a34a;
}

/* 创作内容 */
.uap-creation-content {
    flex: 1;
    min-width: 0;
}

.uap-creation-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
}

.uap-creation-title a {
    color: inherit;
    text-decoration: none;
}

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

.uap-creation-text {
    margin: 0 0 12px;
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 创作元信息 */
.uap-creation-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #9ca3af;
}

.uap-creation-status {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.uap-status-success {
    background: #dcfce7;
    color: #16a34a;
}

.uap-status-warning {
    background: #fef3c7;
    color: #d97706;
}

.uap-status-info {
    background: #e0f2fe;
    color: #0284c7;
}

.uap-status-error {
    background: #fee2e2;
    color: #dc2626;
}

.uap-creation-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 创作缩略图 */
.uap-creation-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.uap-creation-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 创作图片网格 */
.uap-creation-images {
    display: grid;
    gap: 4px;
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
}

.uap-creation-images.uap-images-1 {
    grid-template-columns: 1fr;
    max-width: 300px;
}

.uap-creation-images.uap-images-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 300px;
}

.uap-creation-images.uap-images-3,
.uap-creation-images.uap-images-4 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 300px;
}

.uap-creation-images.uap-images-5,
.uap-creation-images.uap-images-6,
.uap-creation-images.uap-images-7,
.uap-creation-images.uap-images-8,
.uap-creation-images.uap-images-9 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 300px;
}

.uap-creation-image {
    aspect-ratio: 1;
    overflow: hidden;
}

.uap-creation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 创作操作按钮 */
.uap-creation-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s;
}

.uap-creation-item:hover .uap-creation-actions {
    opacity: 1;
}

.uap-creation-action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    border-radius: 6px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.uap-creation-action-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.uap-creation-action-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.uap-creation-action-btn.uap-delete-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* 创作功能未启用提示 */
.uap-creations-disabled {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.uap-creations-disabled h3 {
    margin: 16px 0 8px;
    font-size: 18px;
    color: #374151;
}

.uap-creations-disabled p {
    margin: 0;
    font-size: 14px;
}

/* 分页 */
.uap-creations-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 20px 22px;
}

.uap-creations-pagination:empty { display: none; }

/* 创作中心 - 想法卡片样式 */
.uap-creation-thought-card {
    flex: 1;
    min-width: 0;
}

.uap-creation-thought-content {
    margin-bottom: 12px;
}

.uap-creation-thought-text {
    margin: 0;
    font-size: 15px;
    color: #374151;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.uap-creation-thought-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.uap-creation-thought-meta {
    font-size: 13px;
    color: #9ca3af;
}

.uap-creation-thought-stats {
    display: flex;
    gap: 16px;
}

.uap-creation-thought-stats .uap-creation-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #9ca3af;
    font-size: 13px;
}

.uap-creation-thought-stats .uap-creation-stat svg {
    width: 14px;
    height: 14px;
}

/* 想法类型的创作项特殊样式 */
.uap-creation-item.uap-creation-thought {
    align-items: flex-start;
}

.uap-creation-item.uap-creation-thought .uap-creation-actions {
    align-self: flex-start;
    margin-top: 0;
}

.uap-view-btn:hover {
    background: var(--uap-primary-bg);
    color: var(--uap-action-bg, #4f46e5);
}

/* 移动端适配 */
@media (max-width: 640px) {
    .uap-creations-header {
        flex-direction: column;
        align-items: stretch;
    }

    .uap-creations-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .uap-filter-btn {
        flex-shrink: 0;
        padding: 6px 12px;
        font-size: 13px;
    }

    .uap-creations-actions {
        justify-content: stretch;
    }

    .uap-creations-actions .uap-btn {
        flex: 1;
        justify-content: center;
    }

    .uap-creation-item {
        flex-wrap: wrap;
        padding: 16px;
    }

    .uap-creation-thumb {
        order: -1;
        width: 100%;
        height: 160px;
        margin-bottom: 12px;
    }

    .uap-creation-actions {
        opacity: 1;
        width: 100%;
        justify-content: flex-end;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #f0f0f0;
    }
}

