/* ==================== 想法编辑弹窗 ==================== */

.uap-thought-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.uap-thought-edit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.uap-thought-edit-content {
    position: relative;
    width: 100%;
    max-width: 540px;
    background: var(--uap-surface);
    border-radius: var(--uap-radius-xl);
    border: 1px solid var(--uap-border-light);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    overflow: hidden;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.uap-thought-edit-modal.show .uap-thought-edit-content {
    transform: none;
    opacity: 1;
}

.uap-thought-edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--uap-border-light);
    background: var(--uap-surface);
}

.uap-thought-edit-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--uap-text, #374151);
}

.uap-thought-edit-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: var(--uap-text-light, #6b7280);
    cursor: pointer;
    transition: all 0.2s;
}

.uap-thought-edit-close:hover {
    background: var(--uap-surface-hover);
    color: var(--uap-action-bg, #4f46e5);
    transform: scale(1.1);
}

.uap-thought-edit-close:active {
    transform: scale(0.95);
}

.uap-thought-edit-body {
    padding: 20px;
}

.uap-thought-edit-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    background: var(--uap-bg);
    border: 1px solid var(--uap-border);
    border-radius: var(--uap-radius-lg);
    font-size: 15px;
    line-height: 1.6;
    color: var(--uap-text);
    resize: vertical;
    transition: var(--uap-transition);
}

.uap-thought-edit-textarea:focus {
    outline: none;
    background: var(--uap-surface);
    border-color: var(--uap-primary);
    box-shadow: 0 0 0 3px var(--uap-primary-alpha);
}

.uap-thought-edit-counter {
    text-align: right;
    font-size: 12px;
    color: var(--uap-text-light, #6b7280);
    margin-top: 8px;
}

.uap-thought-edit-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.uap-thought-edit-image {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

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

.uap-thought-edit-image-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.uap-thought-edit-image-remove:hover {
    background: rgba(0, 0, 0, 0.8);
}

.uap-thought-edit-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--uap-border-light);
    background: var(--uap-surface-hover);
}

/* 移动端适配 */
@media (max-width: 640px) {
    .uap-thought-edit-modal {
        padding: 0;
        align-items: flex-end;
    }

    .uap-thought-edit-content {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 80vh;
        overflow-y: auto;
    }
}

